2021-03-11 14:55:14 +00:00
|
|
|
<template>
|
|
|
|
<label
|
|
|
|
class="ChoiceSetting"
|
|
|
|
>
|
|
|
|
<slot />
|
|
|
|
<Select
|
|
|
|
:value="state"
|
|
|
|
:disabled="disabled"
|
|
|
|
@change="update"
|
|
|
|
>
|
|
|
|
<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" />
|
|
|
|
</label>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./choice_setting.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.ChoiceSetting {
|
|
|
|
}
|
|
|
|
</style>
|