2020-10-01 01:43:07 +03:00
|
|
|
<template>
|
|
|
|
|
<label
|
2022-02-22 23:31:40 +02:00
|
|
|
v-if="matchesExpertLevel"
|
2022-02-28 18:23:32 +02:00
|
|
|
class="BooleanSetting"
|
2020-10-01 01:43:07 +03:00
|
|
|
>
|
|
|
|
|
<Checkbox
|
2023-03-16 23:18:55 +02:00
|
|
|
:model-value="draftMode ? draft :state"
|
2023-03-12 14:32:13 +02:00
|
|
|
:disabled="shouldBeDisabled"
|
2022-03-24 11:41:39 +02:00
|
|
|
@update:modelValue="update"
|
2020-10-17 22:28:49 +03:00
|
|
|
>
|
2020-10-01 01:43:07 +03:00
|
|
|
<span
|
|
|
|
|
v-if="!!$slots.default"
|
|
|
|
|
class="label"
|
2021-02-25 14:32:21 +02:00
|
|
|
>
|
2023-03-19 21:27:07 +02:00
|
|
|
<template v-if="backendDescription">
|
2023-03-21 22:26:11 +02:00
|
|
|
{{ backendDescriptionLabel }}
|
2023-03-19 21:27:07 +02:00
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<slot />
|
|
|
|
|
</template>
|
2020-10-01 01:43:07 +03:00
|
|
|
</span>
|
2022-06-05 17:10:44 +03:00
|
|
|
</Checkbox>
|
2023-03-21 22:26:11 +02:00
|
|
|
<ModifiedIndicator
|
|
|
|
|
:changed="isChanged"
|
|
|
|
|
:onclick="reset"
|
|
|
|
|
/>
|
|
|
|
|
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
|
|
|
|
<DraftButtons />
|
|
|
|
|
<p
|
|
|
|
|
v-if="backendDescriptionDescription"
|
|
|
|
|
class="setting-description"
|
|
|
|
|
>
|
|
|
|
|
{{ backendDescriptionDescription + ' ' }}
|
|
|
|
|
</p>
|
2020-10-01 01:43:07 +03:00
|
|
|
</label>
|
|
|
|
|
</template>
|
|
|
|
|
|
2021-03-11 17:04:31 +02:00
|
|
|
<script src="./boolean_setting.js"></script>
|