mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
34 lines
683 B
Vue
34 lines
683 B
Vue
<template>
|
|
<select
|
|
class="select ds-input appearance--auto"
|
|
name="actionRadius"
|
|
:value="value"
|
|
@change="onActionRadiusChange"
|
|
>
|
|
<option v-for="actionRadius in actionRadiusOptions" :key="actionRadius" :value="actionRadius">
|
|
{{ $t(`group.actionRadii.${actionRadius}`) }}
|
|
</option>
|
|
</select>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'ActionRadiusSelect',
|
|
props: {
|
|
value: {
|
|
required: true,
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
actionRadiusOptions: ['regional', 'national', 'continental', 'global'],
|
|
}
|
|
},
|
|
methods: {
|
|
onActionRadiusChange(event) {
|
|
this.$emit('change', event.target.value)
|
|
},
|
|
},
|
|
}
|
|
</script>
|