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 <abhishek.mrt22@gmail.com>
diff --git a/ui/src/views/storage/SnapshotZones.vue b/ui/src/views/storage/SnapshotZones.vue
index 674ca52..66bd0f3 100644
--- a/ui/src/views/storage/SnapshotZones.vue
+++ b/ui/src/views/storage/SnapshotZones.vue
@@ -60,7 +60,7 @@
</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')"
@@ -68,7 +68,7 @@
: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')"