mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 06:51:44 +00:00
hide yaml tab in vm, secret, host detail page
This commit is contained in:
parent
9595981f7e
commit
6c8ec64c50
@ -138,7 +138,8 @@ export function init($plugin, store) {
|
|||||||
},
|
},
|
||||||
resource: NODE,
|
resource: NODE,
|
||||||
resourceDetail: HCI.HOST,
|
resourceDetail: HCI.HOST,
|
||||||
resourceEdit: HCI.HOST
|
resourceEdit: HCI.HOST,
|
||||||
|
canYaml: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
configureType(HCI.HOST, { isCreatable: false, isEditable: true });
|
configureType(HCI.HOST, { isCreatable: false, isEditable: true });
|
||||||
@ -176,6 +177,7 @@ export function init($plugin, store) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
basicType([HCI.VM]);
|
basicType([HCI.VM]);
|
||||||
|
configureType(HCI.VM, { canYaml: false });
|
||||||
virtualType({
|
virtualType({
|
||||||
labelKey: 'harvester.virtualMachine.label',
|
labelKey: 'harvester.virtualMachine.label',
|
||||||
group: 'root',
|
group: 'root',
|
||||||
@ -636,6 +638,7 @@ export function init($plugin, store) {
|
|||||||
resource: SECRET,
|
resource: SECRET,
|
||||||
resourceDetail: HCI.SECRET,
|
resourceDetail: HCI.SECRET,
|
||||||
resourceEdit: HCI.SECRET,
|
resourceEdit: HCI.SECRET,
|
||||||
|
canYaml: false,
|
||||||
notFilterNamespace: ['cattle-monitoring-system', 'cattle-logging-system']
|
notFilterNamespace: ['cattle-monitoring-system', 'cattle-logging-system']
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user