This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 89231106ff9 Hide volumes tab in instance page when user does not have 
permission to list volumes (#8713)
89231106ff9 is described below

commit 89231106ff994589c9fe1aee857ee06b38bc104f
Author: Fabricio Duarte <[email protected]>
AuthorDate: Thu Apr 25 03:59:06 2024 -0300

    Hide volumes tab in instance page when user does not have permission to 
list volumes (#8713)
---
 ui/src/views/compute/InstanceTab.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/views/compute/InstanceTab.vue 
b/ui/src/views/compute/InstanceTab.vue
index a69d044ea8e..5f08145a4ce 100644
--- a/ui/src/views/compute/InstanceTab.vue
+++ b/ui/src/views/compute/InstanceTab.vue
@@ -33,7 +33,7 @@
         <router-link :to="{ path: '/iso/' + vm.isoid }">{{ vm.isoname 
}}</router-link> <br/>
         <barcode-outlined /> {{ vm.isoid }}
       </a-tab-pane>
-      <a-tab-pane :tab="$t('label.volumes')" key="volumes">
+      <a-tab-pane :tab="$t('label.volumes')" key="volumes" v-if="'listVolumes' 
in $store.getters.apis">
         <a-button
           type="primary"
           style="width: 100%; margin-bottom: 10px"

Reply via email to