Skip to content

Commit 8923110

Browse files
authored
Hide volumes tab in instance page when user does not have permission to list volumes (#8713)
1 parent 836ef9e commit 8923110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/compute/InstanceTab.vue

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

0 commit comments

Comments
 (0)