From 6a19d0c55f1a6c98327c008c4e5f27885a9ecc83 Mon Sep 17 00:00:00 2001
From: Maksim Zakharov <m.zakharov@IBS.RU>
Date: Wed, 17 Aug 2022 16:21:53 +0300
Subject: add readonly btn for tables and reset

---
 src/components/_sila/Global/TableRowAction.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/components/_sila/Global/TableRowAction.vue')

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)"
     >
-- 
cgit v1.2.3

