aboutsummaryrefslogblamecommitdiff
path: root/resources/js/components/call-sign-filter.vue
blob: a19b8a6b9fc8576cb0e45936541ee8d6e64326bb (plain) (tree)
1
2
3
4
5
6
7
8
9
          

                                    
                                                                                         
           



                
             
                                      

             

               
                                                   

                  
                                                       

       
               
                                          

     

         
<template>
  <select v-model="selected">
    <option value="all">All</option>
    <option v-for="option in options" :value="option.sign" v-text="option.sign"></option>
  </select>
</template>

<script>
export default {
  mounted() {
    this.$store.dispatch('fillSigns');
  },
  computed: {
    selected: {
      get() {
        return this.$store.getters.getSelectedSign;
      },
      set(value) {
        this.$store.dispatch('setSelectedSign', value);
      }
    },
    options() {
      return this.$store.getters.getSigns;
    }
  }
}
</script>