diff options
Diffstat (limited to 'src/components/_sila/Global/TableRowAction.vue')
-rw-r--r-- | src/components/_sila/Global/TableRowAction.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/_sila/Global/TableRowAction.vue b/src/components/_sila/Global/TableRowAction.vue index c18b4f20..9384538e 100644 --- a/src/components/_sila/Global/TableRowAction.vue +++ b/src/components/_sila/Global/TableRowAction.vue @@ -42,9 +42,7 @@ v-else-if="showButton" variant="link" :class="{ 'btn-icon-only': btnIconOnly }" - :disabled=" - !enabled || $store.getters['authentication/role'] === 'ReadOnly' - " + :disabled="!enabled || isNotAdmin" :title="btnIconOnly ? title : !title" @click="$emit('click-table-action', value)" > @@ -100,6 +98,9 @@ export default { }, }, computed: { + isNotAdmin() { + return this.$store.getters['authentication/role'] === 'ReadOnly'; + }, dataForExport() { return JSON.stringify(omit(this.rowData, 'actions')); }, |