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>
This commit is contained in:
Abhishek Kumar 2023-11-01 17:32:09 +05:30 committed by GitHub
parent 5362bad442
commit 2dac6cb674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')"