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
|
|
|
>
|
|
|
|
|
<slot />
|
2022-03-23 16:15:05 +02:00
|
|
|
{{ ' ' }}
|
2021-03-11 16:55:14 +02:00
|
|
|
<Select
|
2022-03-29 15:35:18 +03:00
|
|
|
:model-value="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
|
|
|
|
|
v-for="option in options"
|
|
|
|
|
: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"
|
|
|
|
|
/>
|
2022-02-28 18:23:32 +02:00
|
|
|
<ServerSideIndicator :server-side="isServerSide" />
|
2021-03-11 16:55:14 +02:00
|
|
|
</label>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script src="./choice_setting.js"></script>
|