mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
add canYaml: false to all detail page
Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
parent
6c8ec64c50
commit
91e70f5231
@ -301,7 +301,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: MONITORING.ALERTMANAGERCONFIG,
|
||||
resourceDetail: HCI.ALERTMANAGERCONFIG,
|
||||
resourceEdit: HCI.ALERTMANAGERCONFIG
|
||||
resourceEdit: HCI.ALERTMANAGERCONFIG,
|
||||
canYaml: false
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -324,7 +325,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: LOGGING.CLUSTER_FLOW,
|
||||
resourceDetail: HCI.CLUSTER_FLOW,
|
||||
resourceEdit: HCI.CLUSTER_FLOW
|
||||
resourceEdit: HCI.CLUSTER_FLOW,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -346,7 +348,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: LOGGING.CLUSTER_OUTPUT,
|
||||
resourceDetail: HCI.CLUSTER_OUTPUT,
|
||||
resourceEdit: HCI.CLUSTER_OUTPUT
|
||||
resourceEdit: HCI.CLUSTER_OUTPUT,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -368,7 +371,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: LOGGING.FLOW,
|
||||
resourceDetail: HCI.FLOW,
|
||||
resourceEdit: HCI.FLOW
|
||||
resourceEdit: HCI.FLOW,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -390,7 +394,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: LOGGING.OUTPUT,
|
||||
resourceDetail: HCI.OUTPUT,
|
||||
resourceEdit: HCI.OUTPUT
|
||||
resourceEdit: HCI.OUTPUT,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -454,7 +459,7 @@ export function init($plugin, store) {
|
||||
|
||||
configureType(HCI.CLUSTER_NETWORK, {
|
||||
realResource: HCI.SETTING,
|
||||
showState: false
|
||||
showState: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -470,7 +475,7 @@ export function init($plugin, store) {
|
||||
exact: false
|
||||
});
|
||||
|
||||
configureType(HCI.SCHEDULE_VM_BACKUP, { showListMasthead: false, showConfigView: false });
|
||||
configureType(HCI.SCHEDULE_VM_BACKUP, { showListMasthead: false, showConfigView: false, canYaml: false });
|
||||
virtualType({
|
||||
labelKey: 'harvester.schedule.label',
|
||||
name: HCI.SCHEDULE_VM_BACKUP,
|
||||
@ -484,7 +489,7 @@ export function init($plugin, store) {
|
||||
ifHaveType: HCI.SCHEDULE_VM_BACKUP,
|
||||
});
|
||||
|
||||
configureType(HCI.BACKUP, { showListMasthead: false, showConfigView: false });
|
||||
configureType(HCI.BACKUP, { showListMasthead: false, showConfigView: false, canYaml: false });
|
||||
virtualType({
|
||||
labelKey: 'harvester.backup.label',
|
||||
name: HCI.BACKUP,
|
||||
@ -497,9 +502,9 @@ export function init($plugin, store) {
|
||||
exact: false
|
||||
});
|
||||
|
||||
configureType(HCI.VLAN_CONFIG, { hiddenNamespaceGroupButton: true });
|
||||
configureType(HCI.VLAN_CONFIG, { hiddenNamespaceGroupButton: true, canYaml: false });
|
||||
|
||||
configureType(HCI.CLUSTER_NETWORK, { showListMasthead: false });
|
||||
configureType(HCI.CLUSTER_NETWORK, { showListMasthead: false, canYaml: false });
|
||||
virtualType({
|
||||
labelKey: 'harvester.clusterNetwork.title',
|
||||
name: HCI.CLUSTER_NETWORK,
|
||||
@ -544,6 +549,7 @@ export function init($plugin, store) {
|
||||
resource: VOLUME_SNAPSHOT,
|
||||
resourceDetail: HCI.SNAPSHOT,
|
||||
resourceEdit: HCI.SNAPSHOT,
|
||||
canYaml: false
|
||||
});
|
||||
headers(HCI.SNAPSHOT, [STATE, NAME_COL, NAMESPACE_COL, SNAPSHOT_TARGET_VOLUME, AGE]);
|
||||
virtualType({
|
||||
@ -566,7 +572,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: HCI.BACKUP,
|
||||
resourceDetail: HCI.VM_SNAPSHOT,
|
||||
resourceEdit: HCI.VM_SNAPSHOT
|
||||
resourceEdit: HCI.VM_SNAPSHOT,
|
||||
canYaml: false
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -601,7 +608,8 @@ export function init($plugin, store) {
|
||||
},
|
||||
resource: CONFIG_MAP,
|
||||
resourceDetail: HCI.CLOUD_TEMPLATE,
|
||||
resourceEdit: HCI.CLOUD_TEMPLATE
|
||||
resourceEdit: HCI.CLOUD_TEMPLATE,
|
||||
canYaml: false
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -679,6 +687,7 @@ export function init($plugin, store) {
|
||||
resourceDetail: HCI.STORAGE,
|
||||
resourceEdit: HCI.STORAGE,
|
||||
isCreatable: true,
|
||||
canYaml: false,
|
||||
});
|
||||
virtualType({
|
||||
labelKey: 'harvester.storage.title',
|
||||
@ -710,6 +719,7 @@ export function init($plugin, store) {
|
||||
configureType(HCI.PCI_DEVICE, {
|
||||
isCreatable: false,
|
||||
hiddenNamespaceGroupButton: true,
|
||||
canYaml: false,
|
||||
listGroups: [
|
||||
{
|
||||
icon: 'icon-list-grouped',
|
||||
@ -745,6 +755,7 @@ export function init($plugin, store) {
|
||||
configureType(HCI.SR_IOV, {
|
||||
isCreatable: false,
|
||||
hiddenNamespaceGroupButton: true,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -764,6 +775,7 @@ export function init($plugin, store) {
|
||||
configureType(HCI.SR_IOVGPU_DEVICE, {
|
||||
isCreatable: false,
|
||||
hiddenNamespaceGroupButton: true,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -782,6 +794,7 @@ export function init($plugin, store) {
|
||||
configureType(HCI.VGPU_DEVICE, {
|
||||
isCreatable: false,
|
||||
hiddenNamespaceGroupButton: true,
|
||||
canYaml: false,
|
||||
listGroups: [
|
||||
{
|
||||
icon: 'icon-cluster',
|
||||
@ -810,6 +823,7 @@ export function init($plugin, store) {
|
||||
configureType(HCI.USB_DEVICE, {
|
||||
isCreatable: false,
|
||||
hiddenNamespaceGroupButton: true,
|
||||
canYaml: false,
|
||||
listGroups: [
|
||||
{
|
||||
icon: 'icon-list-grouped',
|
||||
@ -832,6 +846,7 @@ export function init($plugin, store) {
|
||||
isCreatable: false,
|
||||
isRemovable: false,
|
||||
showState: false,
|
||||
canYaml: false,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
@ -853,6 +868,7 @@ export function init($plugin, store) {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
||||
params: { resource: HCI.LB }
|
||||
},
|
||||
canYaml: false,
|
||||
});
|
||||
virtualType({
|
||||
labelKey: 'harvester.loadBalancer.label',
|
||||
@ -891,6 +907,7 @@ export function init($plugin, store) {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
||||
params: { resource: HCI.IP_POOL }
|
||||
},
|
||||
canYaml: false,
|
||||
});
|
||||
virtualType({
|
||||
labelKey: 'harvester.ipPool.label',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user