diff options
| author | Henry Jameson <me@hjkos.com> | 2018-11-19 04:40:25 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-11-19 04:40:25 +0300 |
| commit | a5b4f31c12706b7226915864c01e5508caf262f9 (patch) | |
| tree | 8bed4ec4e72e1541155b09042513a8e2df72b8fb /src/components/opacity_input/opacity_input.vue | |
| parent | edb429e30796c9312de9a28c262008c7d44757e6 (diff) | |
shadow control initial stuff. not done yet tho
Diffstat (limited to 'src/components/opacity_input/opacity_input.vue')
| -rw-r--r-- | src/components/opacity_input/opacity_input.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue index 4057dcca..91c4f5e9 100644 --- a/src/components/opacity_input/opacity_input.vue +++ b/src/components/opacity_input/opacity_input.vue @@ -1,5 +1,5 @@ <template> -<div class="opacity-control" :class="{ disabled: !present }"> +<div class="opacity-control" :class="{ disabled: !present || disabled }"> <label :for="name" class="label"> {{$t('settings.opacity')}} </label> @@ -17,7 +17,7 @@ class="input-number" type="number" :value="value || fallback" - :disabled="!present" + :disabled="!present || disabled" @input="$emit('input', $event.target.value)" max="1" min="0" @@ -28,7 +28,7 @@ <script> export default { props: [ - 'name', 'value', 'fallback' + 'name', 'value', 'fallback', 'disabled' ], computed: { present () { |
