aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components/call-sign-filter.vue
blob: 9ad202ddee78531df4411007dc974bb241a9fe85 (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
<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 {
  data() {
    return {
      selected: store.state.selectedSign,
      //options: store.state.callSigns
    }
  },
  mounted() {
    store.dispatch('getSigns');
  },
  computed: {
    options() {
      return store.state.callSigns;
    }
  }
}
</script>