Skip to content

Commit

Permalink
ui: fix snapshot copy actions for non-rootadmins (apache#8164)
Browse files Browse the repository at this point in the history
Fixes Snapshot copy, zone delete option not showing in UI for non-rootadmin roles

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
  • Loading branch information
shwstppr authored Nov 1, 2023
1 parent 5362bad commit 2dac6cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/views/storage/SnapshotZones.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@
</template>
<template v-if="column.key === 'actions'">
<tooltip-button
v-if="record.datastoretype==='Image' && record.state==='BackedUp'"
v-if="record.state==='BackedUp'"
style="margin-right: 5px"
:disabled="!(copyApi in $store.getters.apis)"
:title="$t('label.action.copy.snapshot')"
icon="copy-outlined"
:loading="copyLoading"
@onClick="showCopySnapshot(record)" />
<tooltip-button
v-if="record.datastoretype==='Image' && record.state==='BackedUp'"
v-if="record.state==='BackedUp'"
style="margin-right: 5px"
:disabled="!(deleteApi in $store.getters.apis)"
:title="$t('label.action.delete.snapshot')"
Expand Down

0 comments on commit 2dac6cb

Please sign in to comment.