diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-02-28 16:10:04 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-02-28 16:10:04 +0300 |
commit | b0cafe8df13ee45a5bf2d0ad256b9b5f62e68db7 (patch) | |
tree | c3421627b9c4066a88c5bcae48bf0d8839f5ec07 /src/vue | |
parent | c3ef38b3bcb9b6dc817e253fef288aa158b53226 (diff) |
Disable clipboard clear time setting if option disabled
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/vue')
-rw-r--r-- | src/vue/Components/Form/SelectField.vue | 10 | ||||
-rw-r--r-- | src/vue/Components/Options/Settings.vue | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/vue/Components/Form/SelectField.vue b/src/vue/Components/Form/SelectField.vue index 657771f..a66e15b 100644 --- a/src/vue/Components/Form/SelectField.vue +++ b/src/vue/Components/Form/SelectField.vue @@ -78,4 +78,12 @@ } } }; -</script>
\ No newline at end of file +</script> + +<style lang="scss"> +select { + &[disabled] { + opacity: 0.5; + } +} +</style>
\ No newline at end of file diff --git a/src/vue/Components/Options/Settings.vue b/src/vue/Components/Options/Settings.vue index cfa24cf..b2474e6 100644 --- a/src/vue/Components/Options/Settings.vue +++ b/src/vue/Components/Options/Settings.vue @@ -30,7 +30,7 @@ </div> <div class="setting"> <translate tag="label" for="clipboard-clear-delay" say="SettingsClearClipboardDelay"/> - <select-field id="clipboard-clear-delay" :options="clearClipboardDelayOptions" v-model="clearClipboardDelay"/> + <select-field id="clipboard-clear-delay" :options="clearClipboardDelayOptions" v-model="clearClipboardDelay" :disabled="!clearClipboard"/> </div> <translate tag="h3" say="RecommendationSettings"/> |