feat(forklift): Fix the way it is registered

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
This commit is contained in:
Marcelo Fukumoto 2026-06-05 11:27:45 +02:00
parent a180372564
commit 9ddfaefc39
No known key found for this signature in database
GPG Key ID: 1CA12189625C2543

View File

@ -1479,13 +1479,16 @@ export function init($plugin, store) {
} }
}); });
// Register the dashboard entry directly — it's a virtual type with no schema,
// so it cannot go through registerAddonSideNav (which filters by schema).
basicType(['forklift-create'], 'vmMigration');
// Enable SideNav based on Forklift Addon Status // Enable SideNav based on Forklift Addon Status
registerAddonSideNav(store, PRODUCT_NAME, { registerAddonSideNav(store, PRODUCT_NAME, {
addonName: ADD_ONS.FORKLIFT_OPERATOR, addonName: ADD_ONS.FORKLIFT_OPERATOR,
resourceType: HCI.ADD_ONS, resourceType: HCI.ADD_ONS,
navGroup: 'vmMigration', navGroup: 'vmMigration',
types: [ types: [
'forklift-create',
HCI.FORKLIFT_PROVIDER, HCI.FORKLIFT_PROVIDER,
] ]
}); });