mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
add action radius select component
This commit is contained in:
parent
e2667a1a98
commit
c951a900ad
34
webapp/components/Select/ActionRadiusSelect.vue
Normal file
34
webapp/components/Select/ActionRadiusSelect.vue
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<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'],
|
||||||
|
data() {
|
||||||
|
const actionRadius = ''
|
||||||
|
return {
|
||||||
|
actionRadiusOptions: ['regional', 'national', 'continental', 'global'],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onActionRadiusChange(event) {
|
||||||
|
this.$emit('change', event.target.value)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Loading…
x
Reference in New Issue
Block a user