diff options
Diffstat (limited to 'src/components/_sila/Global/FormFile.vue')
-rw-r--r-- | src/components/_sila/Global/FormFile.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/_sila/Global/FormFile.vue b/src/components/_sila/Global/FormFile.vue index 874b4ebd..4d79e987 100644 --- a/src/components/_sila/Global/FormFile.vue +++ b/src/components/_sila/Global/FormFile.vue @@ -28,7 +28,7 @@ 'btn-secondary': isSecondary, 'btn-primary': !isSecondary, }" - :disabled="$store.getters['authentication/role'] === 'ReadOnly'" + :disabled="isNotAdmin" @click="$bvModal.show(`modal-${id}`)" > {{ $t('global.fileUpload.browseText') }} @@ -86,6 +86,9 @@ export default { }; }, computed: { + isNotAdmin() { + return this.$store.getters['authentication/role'] === 'ReadOnly'; + }, isSecondary() { return this.variant === 'secondary'; }, |