pleroma-fe/src/components/settings_modal/helpers/boolean_setting.vue
Alexander Tumin 3e7e31d4a9 Allow column width configuration
Group column configuration in settings
Column width configuration: do not act on defaults
2022-08-11 16:38:24 +03:00

27 lines
541 B
Vue

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