pleroma-fe/src/components/settings_modal/helpers/boolean_setting.vue
Henry Jameson af0cd54223 serverSideConfig renamed into profileSettingConfig to avoid confusion
with serverSideStorage, reduced overall need for SharedComputedObject in
settings tabs, moved copypaste code of "setting" type of helpers into a
separate file.
2023-03-12 14:36:49 +02:00

27 lines
553 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="isProfileTied" />
</Checkbox>
</label>
</template>
<script src="./boolean_setting.js"></script>