From a08eb1082aae8f9d44ba5c4441a48465daf9fab1 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 18 Aug 2021 22:17:17 +0100 Subject: [PATCH] :globe_with_meridians: Adds text for no permission to edit, in guest mode --- src/assets/locales/en.json | 3 ++- src/components/Configuration/JsonEditor.vue | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index f62e397a..058ed69c 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -116,7 +116,8 @@ "error-msg-save-mode": "Please select a Save Mode: Local or File", "error-msg-cannot-save": "An error occurred saving config", "error-msg-bad-json": "Error in JSON, possibly malformed", - "warning-msg-validation": "Validation Warning" + "warning-msg-validation": "Validation Warning", + "not-admin-note": "You cannot write changed to disk, because you are not logged in as an admin" }, "app-rebuild": { "title": "Rebuild Application", diff --git a/src/components/Configuration/JsonEditor.vue b/src/components/Configuration/JsonEditor.vue index 683ec079..fc618cf5 100644 --- a/src/components/Configuration/JsonEditor.vue +++ b/src/components/Configuration/JsonEditor.vue @@ -43,6 +43,9 @@ {{saveSuccess ? $t('config-editor.status-success-msg') : $t('config-editor.status-fail-msg') }}

+

+ {{ $t('config-editor.not-admin-note') }} +

{{ responseText }}

{{ $t('config-editor.success-note-l1') }} @@ -243,6 +246,10 @@ p.response-output { } } +p.no-permission-note { + color: var(--config-settings-color); +} + button.save-button { padding: 0.5rem 1rem; margin: 0.25rem auto;