Skip to content

Commit 026d015

Browse files
vishesh92dhslove
authored andcommitted
UI: Fixup missing buttons (apache#10357)
1 parent d63a816 commit 026d015

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

ui/src/config/section/compute.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default {
108108
label: 'label.vm.add',
109109
docHelp: 'adminguide/virtual_machines.html#creating-vms',
110110
listView: true,
111-
show: () => { isZoneCreated() },
111+
show: isZoneCreated,
112112
component: () => import('@/views/compute/DeployVM.vue')
113113
},
114114
{
@@ -661,7 +661,7 @@ export default {
661661
docHelp: 'plugins/cloudstack-kubernetes-service.html#creating-a-new-kubernetes-cluster',
662662
listView: true,
663663
popup: true,
664-
show: () => { isZoneCreated() },
664+
show: isZoneCreated,
665665
component: shallowRef(defineAsyncComponent(() => import('@/views/compute/CreateKubernetesCluster.vue')))
666666
},
667667
{
@@ -790,7 +790,7 @@ export default {
790790
icon: 'plus-outlined',
791791
label: 'label.new.autoscale.vmgroup',
792792
listView: true,
793-
show: () => { isZoneCreated() },
793+
show: isZoneCreated,
794794
component: () => import('@/views/compute/CreateAutoScaleVmGroup.vue')
795795
},
796796
{
@@ -881,7 +881,7 @@ export default {
881881
icon: 'plus-outlined',
882882
label: 'label.new.instance.group',
883883
listView: true,
884-
show: () => { isZoneCreated() },
884+
show: isZoneCreated,
885885
args: ['name']
886886
},
887887
{

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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default {
254254
icon: 'plus-outlined',
255255
label: 'label.add.vpc',
256256
docHelp: 'adminguide/networking_and_traffic.html#adding-a-virtual-private-cloud',
257-
show: () => { isZoneCreated() },
257+
show: isZoneCreated,
258258
listView: true,
259259
popup: true,
260260
component: shallowRef(defineAsyncComponent(() => import('@/views/network/CreateVpc.vue')))
@@ -401,7 +401,7 @@ export default {
401401
label: 'label.vnf.appliance.add',
402402
docHelp: 'adminguide/networking/vnf_templates_appliances.html#deploying-vnf-appliances',
403403
listView: true,
404-
show: () => { isZoneCreated() },
404+
show: isZoneCreated,
405405
component: () => import('@/views/compute/DeployVnfAppliance.vue')
406406
},
407407
{
@@ -997,7 +997,7 @@ export default {
997997
label: 'label.add.vpn.gateway',
998998
docHelp: 'adminguide/networking_and_traffic.html#creating-a-vpn-gateway-for-the-vpc',
999999
listView: true,
1000-
show: () => { isZoneCreated() },
1000+
show: isZoneCreated,
10011001
args: ['vpcid']
10021002
},
10031003
{
@@ -1173,7 +1173,7 @@ export default {
11731173
icon: 'plus-outlined',
11741174
label: 'label.add.vpn.user',
11751175
listView: true,
1176-
show: () => { isZoneCreated() },
1176+
show: isZoneCreated,
11771177
args: (record, store) => {
11781178
if (store.userInfo.roletype === 'User') {
11791179
return ['username', 'password']
@@ -1253,7 +1253,7 @@ export default {
12531253
docHelp: 'adminguide/networking_and_traffic.html#creating-and-updating-a-vpn-customer-gateway',
12541254
listView: true,
12551255
popup: true,
1256-
show: () => { isZoneCreated() },
1256+
show: isZoneCreated,
12571257
component: shallowRef(defineAsyncComponent(() => import('@/views/network/CreateVpnCustomerGateway.vue')))
12581258
},
12591259
{

ui/src/config/section/storage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default {
106106
icon: 'plus-outlined',
107107
docHelp: 'adminguide/storage.html#creating-a-new-volume',
108108
label: 'label.action.create.volume',
109-
show: () => { isZoneCreated() },
109+
show: isZoneCreated,
110110
listView: true,
111111
popup: true,
112112
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/CreateVolume.vue')))
@@ -126,7 +126,7 @@ export default {
126126
icon: 'link-outlined',
127127
docHelp: 'adminguide/storage.html#uploading-an-existing-volume-to-a-virtual-machine',
128128
label: 'label.upload.volume.from.url',
129-
show: () => { isZoneCreated() },
129+
show: isZoneCreated,
130130
listView: true,
131131
popup: true,
132132
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/UploadVolume.vue')))

0 commit comments

Comments
 (0)