pleroma-fe/src/components/settings_modal/helpers/choice_setting.vue
Alexander Tumin 3e7e31d4a9 Allow column width configuration
Group column configuration in settings
Column width configuration: do not act on defaults
2022-08-11 16:38:24 +03:00

35 lines
725 B
Vue

<template>
<label
v-if="matchesExpertLevel"
class="ChoiceSetting"
>
<slot />
{{ ' ' }}
<Select
:model-value="state"
:disabled="disabled"
@update:modelValue="update"
>
<option
v-for="option in options"
:key="option.key"
:value="option.value"
>
{{ option.label }}
{{ option.value === defaultState ? $t('settings.instance_default_simple') : '' }}
</option>
</Select>
<ModifiedIndicator
:changed="isChanged"
:onclick="reset"
/>
<ServerSideIndicator :server-side="isServerSide" />
</label>
</template>
<script src="./choice_setting.js"></script>
<style lang="scss">
.ChoiceSetting {
}
</style>