2021-03-11 16:55:14 +02:00
|
|
|
<template>
|
|
|
|
|
<label
|
2022-02-22 23:31:40 +02:00
|
|
|
v-if="matchesExpertLevel"
|
2022-02-28 18:23:32 +02:00
|
|
|
class="ChoiceSetting"
|
2021-03-11 16:55:14 +02:00
|
|
|
>
|
2023-04-12 23:58:21 +03:00
|
|
|
<template v-if="backendDescriptionLabel">
|
2023-03-20 23:36:47 +02:00
|
|
|
{{ backendDescriptionLabel }}
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<slot />
|
|
|
|
|
</template>
|
2022-03-23 16:15:05 +02:00
|
|
|
{{ ' ' }}
|
2021-03-11 16:55:14 +02:00
|
|
|
<Select
|
2023-03-21 22:46:40 +02:00
|
|
|
:model-value="realDraftMode ? draft :state"
|
2021-03-11 16:55:14 +02:00
|
|
|
:disabled="disabled"
|
2022-03-22 20:17:25 +02:00
|
|
|
@update:modelValue="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>
|
2022-06-05 17:10:44 +03:00
|
|
|
<ModifiedIndicator
|
|
|
|
|
:changed="isChanged"
|
|
|
|
|
:onclick="reset"
|
|
|
|
|
/>
|
2023-03-12 14:32:13 +02:00
|
|
|
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
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>
|