ui: fix create menu item access (#9104)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2024-05-28 12:57:28 +05:30 committed by GitHub
parent 261530c92a
commit c36a3b8cc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@
<a-dropdown>
<template #overlay>
<a-menu>
<a-menu-item style="width: 100%; padding: 12px">
<a-menu-item style="width: 100%; padding: 12px" v-if="'deployVirtualMachine' in $store.getters.apis">
<router-link :to="{ path: '/action/deployVirtualMachine'}">
<a-row>
<a-col style="margin-right: 12px">
@ -38,7 +38,7 @@
</a-row>
</router-link>
</a-menu-item>
<a-menu-item style="width: 100%; padding: 12px" v-if="'listKubernetesClusters' in $store.getters.apis">
<a-menu-item style="width: 100%; padding: 12px" v-if="'createKubernetesCluster' in $store.getters.apis">
<router-link :to="{ path: '/kubernetes', query: { action: 'createKubernetesCluster' } }">
<a-row>
<a-col style="margin-right: 12px">
@ -57,7 +57,7 @@
</a-row>
</router-link>
</a-menu-item>
<a-menu-item style="width: 100%; padding: 12px">
<a-menu-item style="width: 100%; padding: 12px" v-if="'createVolume' in $store.getters.apis">
<router-link :to="{ path: '/volume', query: { action: 'createVolume' } }">
<a-row>
<a-col style="margin-right: 12px">
@ -76,7 +76,7 @@
</a-row>
</router-link>
</a-menu-item>
<a-menu-item style="width: 100%; padding: 12px">
<a-menu-item style="width: 100%; padding: 12px" v-if="'createNetwork' in $store.getters.apis">
<router-link :to="{ path: '/guestnetwork', query: { action: 'createNetwork' } }">
<a-row>
<a-col style="margin-right: 12px">
@ -95,7 +95,7 @@
</a-row>
</router-link>
</a-menu-item>
<a-menu-item style="width: 100%; padding: 12px">
<a-menu-item style="width: 100%; padding: 12px" v-if="'createVPC' in $store.getters.apis">
<router-link :to="{ path: '/vpc', query: { action: 'createVPC' } }">
<a-row>
<a-col style="margin-right: 12px">
@ -114,7 +114,7 @@
</a-row>
</router-link>
</a-menu-item>
<a-menu-item style="width: 100%; padding: 12px">
<a-menu-item style="width: 100%; padding: 12px" v-if="'registerTemplate' in $store.getters.apis">
<router-link :to="{ path: '/template', query: { action: 'registerTemplate' } }">
<a-row>
<a-col style="margin-right: 12px">