Skip to content

Commit 16740ff

Browse files
committed
Fixup
1 parent 01de0f5 commit 16740ff

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

ui/src/config/section/compute.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default {
100100
label: 'label.vm.add',
101101
docHelp: 'adminguide/virtual_machines.html#creating-vms',
102102
listView: true,
103-
show: () => isZoneCreated(),
103+
show: isZoneCreated,
104104
component: () => import('@/views/compute/DeployVM.vue')
105105
},
106106
{
@@ -569,7 +569,7 @@ export default {
569569
docHelp: 'plugins/cloudstack-kubernetes-service.html#creating-a-new-kubernetes-cluster',
570570
listView: true,
571571
popup: true,
572-
show: () => isZoneCreated(),
572+
show: isZoneCreated,
573573
component: shallowRef(defineAsyncComponent(() => import('@/views/compute/CreateKubernetesCluster.vue')))
574574
},
575575
{
@@ -698,7 +698,7 @@ export default {
698698
icon: 'plus-outlined',
699699
label: 'label.new.autoscale.vmgroup',
700700
listView: true,
701-
show: () => isZoneCreated(),
701+
show: isZoneCreated,
702702
component: () => import('@/views/compute/CreateAutoScaleVmGroup.vue')
703703
},
704704
{
@@ -789,7 +789,7 @@ export default {
789789
icon: 'plus-outlined',
790790
label: 'label.new.instance.group',
791791
listView: true,
792-
show: () => isZoneCreated(),
792+
show: isZoneCreated,
793793
args: ['name']
794794
},
795795
{

ui/src/config/section/image.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
docHelp: 'adminguide/templates.html#uploading-templates-from-a-remote-http-server',
112112
listView: true,
113113
popup: true,
114-
show: () => isZoneCreated(),
114+
show: isZoneCreated,
115115
component: shallowRef(defineAsyncComponent(() => import('@/views/image/RegisterOrUploadTemplate.vue')))
116116
},
117117
{
@@ -272,7 +272,7 @@ export default {
272272
docHelp: 'adminguide/templates.html#id10',
273273
listView: true,
274274
popup: true,
275-
show: () => isZoneCreated(),
275+
show: isZoneCreated,
276276
component: shallowRef(defineAsyncComponent(() => import('@/views/image/RegisterOrUploadIso.vue')))
277277
},
278278
{
@@ -392,7 +392,7 @@ export default {
392392
label: 'label.kubernetes.version.add',
393393
listView: true,
394394
popup: true,
395-
show: () => isZoneCreated(),
395+
show: isZoneCreated,
396396
component: shallowRef(defineAsyncComponent(() => import('@/views/image/AddKubernetesSupportedVersion.vue')))
397397
},
398398
{

ui/src/config/section/network.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export default {
246246
icon: 'plus-outlined',
247247
label: 'label.add.vpc',
248248
docHelp: 'adminguide/networking_and_traffic.html#adding-a-virtual-private-cloud',
249-
show: () => isZoneCreated(),
249+
show: isZoneCreated,
250250
listView: true,
251251
popup: true,
252252
component: shallowRef(defineAsyncComponent(() => import('@/views/network/CreateVpc.vue')))
@@ -396,7 +396,7 @@ export default {
396396
label: 'label.vnf.appliance.add',
397397
docHelp: 'adminguide/networking/vnf_templates_appliances.html#deploying-vnf-appliances',
398398
listView: true,
399-
show: () => isZoneCreated(),
399+
show: isZoneCreated,
400400
component: () => import('@/views/compute/DeployVnfAppliance.vue')
401401
},
402402
{
@@ -944,7 +944,7 @@ export default {
944944
label: 'label.add.vpn.gateway',
945945
docHelp: 'adminguide/networking_and_traffic.html#creating-a-vpn-gateway-for-the-vpc',
946946
listView: true,
947-
show: () => isZoneCreated(),
947+
show: isZoneCreated,
948948
args: ['vpcid']
949949
},
950950
{
@@ -1120,7 +1120,7 @@ export default {
11201120
icon: 'plus-outlined',
11211121
label: 'label.add.vpn.user',
11221122
listView: true,
1123-
show: () => isZoneCreated(),
1123+
show: isZoneCreated,
11241124
args: (record, store) => {
11251125
if (store.userInfo.roletype === 'User') {
11261126
return ['username', 'password']
@@ -1200,7 +1200,7 @@ export default {
12001200
docHelp: 'adminguide/networking_and_traffic.html#creating-and-updating-a-vpn-customer-gateway',
12011201
listView: true,
12021202
popup: true,
1203-
show: () => isZoneCreated(),
1203+
show: isZoneCreated,
12041204
component: shallowRef(defineAsyncComponent(() => import('@/views/network/CreateVpnCustomerGateway.vue')))
12051205
},
12061206
{
@@ -1390,7 +1390,7 @@ export default {
13901390
component: shallowRef(defineAsyncComponent(() => import('@/views/network/GuestVlanNetworksTab.vue'))),
13911391
show: (record) => { return (record.allocationstate === 'Allocated') }
13921392
}],
1393-
show: () => { isZoneCreated() }
1393+
show: isZoneCreated
13941394
}
13951395
]
13961396
}

ui/src/config/section/storage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
icon: 'plus-outlined',
105105
docHelp: 'adminguide/storage.html#creating-a-new-volume',
106106
label: 'label.action.create.volume',
107-
show: () => isZoneCreated(),
107+
show: isZoneCreated,
108108
listView: true,
109109
popup: true,
110110
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/CreateVolume.vue')))
@@ -124,7 +124,7 @@ export default {
124124
icon: 'link-outlined',
125125
docHelp: 'adminguide/storage.html#uploading-an-existing-volume-to-a-virtual-machine',
126126
label: 'label.upload.volume.from.url',
127-
show: () => isZoneCreated(),
127+
show: isZoneCreated,
128128
listView: true,
129129
popup: true,
130130
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/UploadVolume.vue')))

0 commit comments

Comments
 (0)