2021-03-11 16:55:14 +02:00
|
|
|
<template>
|
|
|
|
|
<label
|
2022-02-22 23:31:40 +02:00
|
|
|
v-if="matchesExpertLevel"
|
2025-12-10 18:34:19 +02:00
|
|
|
class="ChoiceSetting setting-item"
|
2025-11-28 15:44:03 +02:00
|
|
|
:class="{ 'faint': shouldBeDisabled }"
|
2021-03-11 16:55:14 +02:00
|
|
|
>
|
2025-12-10 18:34:19 +02:00
|
|
|
<span class="setting-label">
|
|
|
|
|
<ModifiedIndicator
|
|
|
|
|
:changed="isChanged"
|
|
|
|
|
:onclick="reset"
|
|
|
|
|
/>
|
|
|
|
|
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
|
|
|
|
{{ ' ' }}
|
|
|
|
|
<template v-if="backendDescriptionLabel">
|
|
|
|
|
{{ backendDescriptionLabel }}
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<slot />
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
2021-03-11 16:55:14 +02:00
|
|
|
<Select
|
2025-12-10 18:34:19 +02:00
|
|
|
class="setting-control"
|
2025-11-28 02:02:29 +02:00
|
|
|
:model-value="realDraftMode ? draft : state"
|
2025-11-28 15:44:03 +02:00
|
|
|
:disabled="shouldBeDisabled"
|
2025-02-04 14:14:31 +02:00
|
|
|
@update:model-value="update"
|
2021-03-11 16:55:14 +02:00
|
|
|
>
|
|
|
|
|
<option
|
2023-03-20 23:36:47 +02:00
|
|
|
v-for="option in realOptions"
|
2021-03-11 16:55:14 +02:00
|
|
|
:key="option.key"
|
|
|
|
|
:value="option.value"
|
|
|
|
|
>
|
|
|
|
|
{{ option.label }}
|
2021-03-11 17:04:31 +02:00
|
|
|
{{ option.value === defaultState ? $t('settings.instance_default_simple') : '' }}
|
2021-03-11 16:55:14 +02:00
|
|
|
</option>
|
|
|
|
|
</Select>
|
2023-03-20 23:36:47 +02:00
|
|
|
<DraftButtons />
|
|
|
|
|
<p
|
|
|
|
|
v-if="backendDescriptionDescription"
|
|
|
|
|
class="setting-description"
|
|
|
|
|
>
|
|
|
|
|
{{ backendDescriptionDescription + ' ' }}
|
|
|
|
|
</p>
|
2021-03-11 16:55:14 +02:00
|
|
|
</label>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script src="./choice_setting.js"></script>
|
2025-12-10 18:34:19 +02:00
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.ChoiceSetting.setting-item {
|
|
|
|
|
.-mobile & {
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
|
|
.setting-label {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 0.5em
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|