blob: 658b0d2a6c8fb4f85e11d0efabb531ab1ab8c11c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<template>
<select v-model="selected">
<option value="all">All</option>
<option v-for="option in options" :value="option" v-text="option"></option>
</select>
</template>
<script>
import store from '../store.js';
export default {
mounted() {
store.dispatch('fillSigns');
},
computed: {
selected: {
get() {
return store.getters.getSelectedSign;
},
set(value) {
store.dispatch('setSelectedSign', value);
}
},
options() {
return store.getters.getSigns;
}
}
}
</script>
|