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-22 00:00:52 +02:00
|
|
|
:model-value="visibleState"
|
2023-03-12 14:32:13 +02:00
|
|
|
:disabled="shouldBeDisabled"
|
2023-03-22 00:00:52 +02:00
|
|
|
:indeterminate="isIndeterminate"
|
2025-02-04 14:14:31 +02:00
|
|
|
@update:model-value="update"
|
2020-10-17 22:28:49 +03:00
|
|
|
>
|
2020-10-01 01:43:07 +03:00
|
|
|
<span
|
|
|
|
|
class="label"
|
2023-03-22 00:00:52 +02:00
|
|
|
:class="{ 'faint': shouldBeDisabled }"
|
2021-02-25 14:32:21 +02:00
|
|
|
>
|
2023-04-12 23:58:21 +03:00
|
|
|
<template v-if="backendDescriptionLabel">
|
2023-03-21 22:26:11 +02:00
|
|
|
{{ backendDescriptionLabel }}
|
2023-03-19 21:27:07 +02:00
|
|
|
</template>
|
2023-05-08 21:10:06 +03:00
|
|
|
<template v-else-if="source === 'admin'">
|
|
|
|
|
MISSING LABEL FOR {{ path }}
|
2023-03-19 21:27:07 +02:00
|
|
|
</template>
|
2023-05-08 21:10:06 +03:00
|
|
|
<slot v-else />
|
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"
|
2023-03-22 00:00:52 +02:00
|
|
|
:class="{ 'faint': shouldBeDisabled }"
|
2023-03-21 22:26:11 +02:00
|
|
|
>
|
|
|
|
|
{{ 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>
|