|
19 | 19 | <a-dropdown> |
20 | 20 | <template #overlay> |
21 | 21 | <a-menu> |
22 | | - <a-menu-item style="width: 100%; padding: 12px"> |
| 22 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'deployVirtualMachine' in $store.getters.apis"> |
23 | 23 | <router-link :to="{ path: '/action/deployVirtualMachine'}"> |
24 | 24 | <a-row> |
25 | 25 | <a-col style="margin-right: 12px"> |
|
38 | 38 | </a-row> |
39 | 39 | </router-link> |
40 | 40 | </a-menu-item> |
41 | | - <a-menu-item style="width: 100%; padding: 12px" v-if="'listKubernetesClusters' in $store.getters.apis"> |
| 41 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'createKubernetesCluster' in $store.getters.apis"> |
42 | 42 | <router-link :to="{ path: '/kubernetes', query: { action: 'createKubernetesCluster' } }"> |
43 | 43 | <a-row> |
44 | 44 | <a-col style="margin-right: 12px"> |
|
57 | 57 | </a-row> |
58 | 58 | </router-link> |
59 | 59 | </a-menu-item> |
60 | | - <a-menu-item style="width: 100%; padding: 12px"> |
| 60 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'createVolume' in $store.getters.apis"> |
61 | 61 | <router-link :to="{ path: '/volume', query: { action: 'createVolume' } }"> |
62 | 62 | <a-row> |
63 | 63 | <a-col style="margin-right: 12px"> |
|
76 | 76 | </a-row> |
77 | 77 | </router-link> |
78 | 78 | </a-menu-item> |
79 | | - <a-menu-item style="width: 100%; padding: 12px"> |
| 79 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'createNetwork' in $store.getters.apis"> |
80 | 80 | <router-link :to="{ path: '/guestnetwork', query: { action: 'createNetwork' } }"> |
81 | 81 | <a-row> |
82 | 82 | <a-col style="margin-right: 12px"> |
|
95 | 95 | </a-row> |
96 | 96 | </router-link> |
97 | 97 | </a-menu-item> |
98 | | - <a-menu-item style="width: 100%; padding: 12px"> |
| 98 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'createVPC' in $store.getters.apis"> |
99 | 99 | <router-link :to="{ path: '/vpc', query: { action: 'createVPC' } }"> |
100 | 100 | <a-row> |
101 | 101 | <a-col style="margin-right: 12px"> |
|
114 | 114 | </a-row> |
115 | 115 | </router-link> |
116 | 116 | </a-menu-item> |
117 | | - <a-menu-item style="width: 100%; padding: 12px"> |
| 117 | + <a-menu-item style="width: 100%; padding: 12px" v-if="'registerTemplate' in $store.getters.apis"> |
118 | 118 | <router-link :to="{ path: '/template', query: { action: 'registerTemplate' } }"> |
119 | 119 | <a-row> |
120 | 120 | <a-col style="margin-right: 12px"> |
|
0 commit comments