yandere_fe/src/components/settings_modal/helpers/boolean_setting.vue
2023-03-12 17:11:20 +02:00

27 lines
556 B
Vue

<template>
<label
v-if="matchesExpertLevel"
class="BooleanSetting"
>
<Checkbox
:model-value="state"
:disabled="shouldBeDisabled"
@update:modelValue="update"
>
<span
v-if="!!$slots.default"
class="label"
>
<slot />
</span>
{{ ' ' }}
<ModifiedIndicator
:changed="isChanged"
:onclick="reset"
/>
<ProfileSettingIndicator :is-profile="isProfileSetting" />
</Checkbox>
</label>
</template>
<script src="./boolean_setting.js"></script>