Skip to content

Commit 8311acb

Browse files
winterhazeldhslove
authored andcommitted
Hide volumes tab in instance page when user does not have permission to list volumes (apache#8713)
1 parent 09f9415 commit 8311acb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/views/compute/InstanceTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<router-link :to="{ path: '/iso/' + vm.isoid }">{{ vm.isoname }}</router-link> <br/>
3636
<barcode-outlined /> {{ vm.isoid }}
3737
</a-tab-pane>
38-
<a-tab-pane :tab="$t('label.volumes')" key="volumes">
38+
<a-tab-pane :tab="$t('label.volumes')" key="volumes" v-if="'listVolumes' in $store.getters.apis">
3939
<a-button
4040
type="primary"
4141
style="width: 100%; margin-bottom: 10px"

0 commit comments

Comments
 (0)