fix: register upgrade component in header (#256)

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
(cherry picked from commit b499f62c56c76a9321fb47b1235621b6c827dc38)

Co-authored-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
mergify[bot] 2025-04-17 15:19:08 +08:00 committed by GitHub
parent 9d9383ba90
commit 31c6a794be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@ import harvesterCommonStore from './store/harvester-common';
import harvesterStore from './store/harvester-store';
import customValidators from './validators';
import { PRODUCT_NAME } from './config/harvester';
import { defineAsyncComponent } from 'vue';
// Init the package
export default function (plugin: IPlugin) {
@ -28,4 +29,8 @@ export default function (plugin: IPlugin) {
plugin.validators = customValidators;
plugin.addRoutes(extensionRoutes);
plugin.register('component', 'NavHeaderRight', defineAsyncComponent(() =>
import('./components/HarvesterUpgradeHeader.vue')
));
}