diff options
| author | Henry Jameson <me@hjkos.com> | 2023-03-22 00:00:52 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-03-22 00:00:52 +0200 |
| commit | 6992439c92c247bf5b48155a76ff4e39a57b0ec7 (patch) | |
| tree | 49b3318cea1f209c200ec85342ddb8558c844d35 /src/components/settings_modal/helpers/string_setting.vue | |
| parent | 2bf224e214d9b42333a2139a89c089ca9a544149 (diff) | |
fixes for diabled state, tri-state boolean and access control
Diffstat (limited to 'src/components/settings_modal/helpers/string_setting.vue')
| -rw-r--r-- | src/components/settings_modal/helpers/string_setting.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/settings_modal/helpers/string_setting.vue b/src/components/settings_modal/helpers/string_setting.vue index fb91b5d9..5ee75a84 100644 --- a/src/components/settings_modal/helpers/string_setting.vue +++ b/src/components/settings_modal/helpers/string_setting.vue @@ -3,7 +3,7 @@ v-if="matchesExpertLevel" class="StringSetting" > - <label :for="path"> + <label :for="path" :class="{ 'faint': shouldBeDisabled }"> <template v-if="backendDescription"> {{ backendDescriptionLabel + ' ' }} </template> @@ -15,7 +15,7 @@ :id="path" class="string-input" step="1" - :disabled="disabled" + :disabled="shouldBeDisabled" :value="realDraftMode ? draft : state" @change="update" > @@ -29,6 +29,7 @@ <p v-if="backendDescriptionDescription" class="setting-description" + :class="{ 'faint': shouldBeDisabled }" > {{ backendDescriptionDescription + ' ' }} </p> |
