aboutsummaryrefslogtreecommitdiff
path: root/resources/js/store.js
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-14 01:13:32 +0100
committerMateja <mail@matejamaric.com>2021-03-14 01:13:32 +0100
commitc3a0c1a40262343e1c7e6ec9a0bba9772054ba6d (patch)
treeb81239c03dfa3f587e0188cdc0e1e8111b08015f /resources/js/store.js
parent2e570c76bda80def3e07ecc3478d8eb95905acbb (diff)
downloadyota-laravel-c3a0c1a40262343e1c7e6ec9a0bba9772054ba6d.tar.gz
yota-laravel-c3a0c1a40262343e1c7e6ec9a0bba9772054ba6d.zip
Use computed setter in call-sign-filter component.
Diffstat (limited to 'resources/js/store.js')
-rw-r--r--resources/js/store.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/js/store.js b/resources/js/store.js
index 7f5f1df..33b7469 100644
--- a/resources/js/store.js
+++ b/resources/js/store.js
@@ -17,12 +17,18 @@ const store = new Vuex.Store({
}
},
mutations: {
+ setSelectedSign(state, sign) {
+ state.selectedSign = sign;
+ },
fillSigns(state, signs) {
state.callSigns = signs;
}
},
actions: {
- getSigns(context) {
+ setSelectedSign(context, sign) {
+ context.commit('setSelectedSign', sign);
+ },
+ fillSigns(context) {
let data = ['test', 'TEST', 'TeSt'];
context.commit('fillSigns', data);
}