aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/components')
-rw-r--r--resources/js/components/call-sign-filter.vue22
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>