diff options
author | Mateja <mail@matejamaric.com> | 2021-03-13 23:57:41 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-13 23:57:41 +0100 |
commit | 2e570c76bda80def3e07ecc3478d8eb95905acbb (patch) | |
tree | 8608f5ebf608bdf2bcf245b458970f2346ecb8d6 /resources/js/components | |
parent | 865bb1f30a0c4567522525fb0be9fd99bd796ecf (diff) | |
download | yota-laravel-2e570c76bda80def3e07ecc3478d8eb95905acbb.tar.gz yota-laravel-2e570c76bda80def3e07ecc3478d8eb95905acbb.zip |
Work on call-sign-filter component.
Diffstat (limited to 'resources/js/components')
-rw-r--r-- | resources/js/components/call-sign-filter.vue | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/resources/js/components/call-sign-filter.vue b/resources/js/components/call-sign-filter.vue index 48e54f5..9ad202d 100644 --- a/resources/js/components/call-sign-filter.vue +++ b/resources/js/components/call-sign-filter.vue @@ -1,9 +1,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> |