summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-08-17 16:21:53 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-08-17 16:21:53 +0300
commit6a19d0c55f1a6c98327c008c4e5f27885a9ecc83 (patch)
tree9f4454fa473e8a8a3b0fd48c16c8e33cd704dbf3 /src/components
parent3507027dd1bb7d28839e283738c5b55d633ec451 (diff)
downloadwebui-vue-6a19d0c55f1a6c98327c008c4e5f27885a9ecc83.tar.xz
add readonly btn for tables and reset
Diffstat (limited to 'src/components')
-rw-r--r--src/components/_sila/Global/TableRowAction.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/_sila/Global/TableRowAction.vue b/src/components/_sila/Global/TableRowAction.vue
index 549f1b52..c18b4f20 100644
--- a/src/components/_sila/Global/TableRowAction.vue
+++ b/src/components/_sila/Global/TableRowAction.vue
@@ -42,7 +42,9 @@
v-else-if="showButton"
variant="link"
:class="{ 'btn-icon-only': btnIconOnly }"
- :disabled="!enabled"
+ :disabled="
+ !enabled || $store.getters['authentication/role'] === 'ReadOnly'
+ "
:title="btnIconOnly ? title : !title"
@click="$emit('click-table-action', value)"
>