Skip to content

Commit 2dac6cb

Browse files
authored
ui: fix snapshot copy actions for non-rootadmins (#8164)
Fixes Snapshot copy, zone delete option not showing in UI for non-rootadmin roles Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 5362bad commit 2dac6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/storage/SnapshotZones.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
</template>
6161
<template v-if="column.key === 'actions'">
6262
<tooltip-button
63-
v-if="record.datastoretype==='Image' && record.state==='BackedUp'"
63+
v-if="record.state==='BackedUp'"
6464
style="margin-right: 5px"
6565
:disabled="!(copyApi in $store.getters.apis)"
6666
:title="$t('label.action.copy.snapshot')"
6767
icon="copy-outlined"
6868
:loading="copyLoading"
6969
@onClick="showCopySnapshot(record)" />
7070
<tooltip-button
71-
v-if="record.datastoretype==='Image' && record.state==='BackedUp'"
71+
v-if="record.state==='BackedUp'"
7272
style="margin-right: 5px"
7373
:disabled="!(deleteApi in $store.getters.apis)"
7474
:title="$t('label.action.delete.snapshot')"

0 commit comments

Comments
 (0)