fix checkboxes, specifically the NSFW one
This commit is contained in:
parent
9793002070
commit
4539feed40
@ -6,9 +6,9 @@
|
||||
<input
|
||||
type="checkbox"
|
||||
:disabled="disabled"
|
||||
:checked="checked"
|
||||
:modelValue="modelValue"
|
||||
:indeterminate="indeterminate"
|
||||
@change="$emit('change', $event.target.checked)"
|
||||
@change="$emit('update:modelValue', $event.target.checked)"
|
||||
>
|
||||
<i class="checkbox-indicator" />
|
||||
<span
|
||||
@ -22,12 +22,9 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
model: {
|
||||
prop: 'checked',
|
||||
event: 'change'
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
props: [
|
||||
'checked',
|
||||
'modelValue',
|
||||
'indeterminate',
|
||||
'disabled'
|
||||
]
|
||||
|
@ -11,7 +11,7 @@
|
||||
</label>
|
||||
<Checkbox
|
||||
v-if="typeof fallback !== 'undefined' && showOptionalTickbox"
|
||||
:checked="present"
|
||||
:modelValue="present"
|
||||
:disabled="disabled"
|
||||
class="opt"
|
||||
@change="$emit('update:modelValue', typeof value === 'undefined' ? fallback : undefined)"
|
||||
|
@ -14,7 +14,7 @@
|
||||
:id="name + '-o'"
|
||||
class="opt exlcude-disabled"
|
||||
type="checkbox"
|
||||
:checked="present"
|
||||
:modelValue="present"
|
||||
@input="$emit('update:modelValue', typeof value === 'undefined' ? fallback : undefined)"
|
||||
>
|
||||
<label
|
||||
|
@ -11,7 +11,7 @@
|
||||
</label>
|
||||
<Checkbox
|
||||
v-if="typeof fallback !== 'undefined'"
|
||||
:checked="present"
|
||||
:modelValue="present"
|
||||
:disabled="disabled"
|
||||
class="opt"
|
||||
@change="$emit('update:modelValue', !present ? fallback : undefined)"
|
||||
|
@ -14,7 +14,7 @@
|
||||
:id="name + '-o'"
|
||||
class="opt"
|
||||
type="checkbox"
|
||||
:checked="present"
|
||||
:modelValue="present"
|
||||
@input="$emit('update:modelValue', !present ? fallback : undefined)"
|
||||
>
|
||||
<label
|
||||
|
@ -6,7 +6,7 @@
|
||||
>
|
||||
<div class="selectable-list-checkbox-wrapper">
|
||||
<Checkbox
|
||||
:checked="allSelected"
|
||||
:modelValue="allSelected"
|
||||
:indeterminate="someSelected"
|
||||
@change="toggleAll"
|
||||
>
|
||||
@ -31,7 +31,7 @@
|
||||
>
|
||||
<div class="selectable-list-checkbox-wrapper">
|
||||
<Checkbox
|
||||
:checked="isSelected(item)"
|
||||
:modelValue="isSelected(item)"
|
||||
@change="checked => toggle(checked, item)"
|
||||
/>
|
||||
</div>
|
||||
|
@ -4,9 +4,9 @@
|
||||
class="BooleanSetting"
|
||||
>
|
||||
<Checkbox
|
||||
:checked="state"
|
||||
:modelValue="state"
|
||||
:disabled="disabled"
|
||||
@change="update"
|
||||
@update:modelValue="update"
|
||||
>
|
||||
<span
|
||||
v-if="!!$slots.default"
|
||||
|
@ -110,7 +110,7 @@
|
||||
</template>
|
||||
</Popover>
|
||||
|
||||
<Checkbox :checked="!!expertLevel" @change="expertLevel = Number($event)">
|
||||
<Checkbox :modelValue="!!expertLevel" @update:modelValue="expertLevel = Number($event)">
|
||||
{{ $t("settings.expert_mode") }}
|
||||
</Checkbox>
|
||||
</div>
|
||||
|
@ -53,7 +53,7 @@
|
||||
:statusoid="item"
|
||||
/>
|
||||
<Checkbox
|
||||
:checked="isChecked(item.id)"
|
||||
:modelValue="isChecked(item.id)"
|
||||
@change="checked => toggleStatus(checked, item.id)"
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user