@@ -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}
0 commit comments