hide yaml tab in vm, secret, host detail page

This commit is contained in:
andy.lee 2024-10-31 19:30:43 +08:00 committed by Francesco Torchia
parent 9595981f7e
commit 6c8ec64c50
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393

View File

@ -138,7 +138,8 @@ export function init($plugin, store) {
},
resource: NODE,
resourceDetail: HCI.HOST,
resourceEdit: HCI.HOST
resourceEdit: HCI.HOST,
canYaml: false,
});
configureType(HCI.HOST, { isCreatable: false, isEditable: true });
@ -176,6 +177,7 @@ export function init($plugin, store) {
});
basicType([HCI.VM]);
configureType(HCI.VM, { canYaml: false });
virtualType({
labelKey: 'harvester.virtualMachine.label',
group: 'root',
@ -636,6 +638,7 @@ export function init($plugin, store) {
resource: SECRET,
resourceDetail: HCI.SECRET,
resourceEdit: HCI.SECRET,
canYaml: false,
notFilterNamespace: ['cattle-monitoring-system', 'cattle-logging-system']
});