diff --git a/shell/core/plugins.js b/shell/core/plugins.js index 6dfa825966f..1c0cd823617 100644 --- a/shell/core/plugins.js +++ b/shell/core/plugins.js @@ -37,7 +37,8 @@ export default function(context, inject, vueApp) { store, $axios, redirect, - plugins: this + plugins: this, + vueApp, // Expose app instance to plugins to allow adding components and such }; return internal; diff --git a/shell/initialize/install-plugins.js b/shell/initialize/install-plugins.js index 45dfb9508c4..81f177f5618 100644 --- a/shell/initialize/install-plugins.js +++ b/shell/initialize/install-plugins.js @@ -48,7 +48,8 @@ export async function installInjectedPlugins(app, vueApp) { if (typeof pluginDefinition === 'function') { await pluginDefinition( app.context, - (key, value) => inject(key, value, app.context, vueApp) + (key, value) => inject(key, value, app.context, vueApp), + vueApp, // Expose app instance to plugins to allow adding components and such ); } });