logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 48fd8a66ad554ee1f5079db7e267bf838d2e8b0a
parent 53cde520276af98a9b2b20cd0e8acf7bde768e70
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 27 Mar 2022 14:18:02 +0300

fix opacity control

Diffstat:

Msrc/components/opacity_input/opacity_input.vue7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue @@ -14,7 +14,7 @@ :modelValue="present" :disabled="disabled" class="opt" - @change="$emit('update:modelValue', !present ? fallback : undefined)" + @update:modelValue="$emit('update:modelValue', !present ? fallback : undefined)" /> <input :id="name" @@ -37,11 +37,12 @@ export default { Checkbox }, props: [ - 'name', 'value', 'fallback', 'disabled' + 'name', 'modelValue', 'fallback', 'disabled' ], + emits: ['update:modelValue'], computed: { present () { - return typeof this.value !== 'undefined' + return typeof this.modelValue !== 'undefined' } } }