2021-03-11 14:55:14 +00:00
|
|
|
<template>
|
|
|
|
<label
|
2022-02-22 21:31:40 +00:00
|
|
|
v-if="matchesExpertLevel"
|
2022-02-28 16:23:32 +00:00
|
|
|
class="ChoiceSetting"
|
2021-03-11 14:55:14 +00:00
|
|
|
>
|
|
|
|
<slot />
|
|
|
|
<Select
|
2022-03-22 18:17:25 +00:00
|
|
|
:modelValue="state"
|
2021-03-11 14:55:14 +00:00
|
|
|
:disabled="disabled"
|
2022-03-22 18:17:25 +00:00
|
|
|
@update:modelValue="update"
|
2021-03-11 14:55:14 +00:00
|
|
|
>
|
|
|
|
<option
|
|
|
|
v-for="option in options"
|
|
|
|
:key="option.key"
|
|
|
|
:value="option.value"
|
|
|
|
>
|
|
|
|
{{ option.label }}
|
2021-03-11 15:04:31 +00:00
|
|
|
{{ option.value === defaultState ? $t('settings.instance_default_simple') : '' }}
|
2021-03-11 14:55:14 +00:00
|
|
|
</option>
|
|
|
|
</Select>
|
|
|
|
<ModifiedIndicator :changed="isChanged" />
|
2022-02-28 16:23:32 +00:00
|
|
|
<ServerSideIndicator :server-side="isServerSide" />
|
2021-03-11 14:55:14 +00:00
|
|
|
</label>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./choice_setting.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.ChoiceSetting {
|
|
|
|
}
|
|
|
|
</style>
|