From a5b4f31c12706b7226915864c01e5508caf262f9 Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Mon, 19 Nov 2018 04:40:25 +0300
Subject: shadow control initial stuff. not done yet tho

---
 src/components/opacity_input/opacity_input.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/opacity_input/opacity_input.vue')

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 () {
-- 
cgit v1.2.3-70-g09d2

