mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
fix: register upgrade component in header
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
5b39432481
commit
b499f62c56
@ -6,6 +6,7 @@ import harvesterCommonStore from './store/harvester-common';
|
|||||||
import harvesterStore from './store/harvester-store';
|
import harvesterStore from './store/harvester-store';
|
||||||
import customValidators from './validators';
|
import customValidators from './validators';
|
||||||
import { PRODUCT_NAME } from './config/harvester';
|
import { PRODUCT_NAME } from './config/harvester';
|
||||||
|
import { defineAsyncComponent } from 'vue';
|
||||||
|
|
||||||
// Init the package
|
// Init the package
|
||||||
export default function (plugin: IPlugin) {
|
export default function (plugin: IPlugin) {
|
||||||
@ -28,4 +29,8 @@ export default function (plugin: IPlugin) {
|
|||||||
plugin.validators = customValidators;
|
plugin.validators = customValidators;
|
||||||
|
|
||||||
plugin.addRoutes(extensionRoutes);
|
plugin.addRoutes(extensionRoutes);
|
||||||
|
|
||||||
|
plugin.register('component', 'NavHeaderRight', defineAsyncComponent(() =>
|
||||||
|
import('./components/HarvesterUpgradeHeader.vue')
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user