aboutsummaryrefslogtreecommitdiff
path: root/resources/js/components
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-20 19:42:18 +0100
committerMateja <mail@matejamaric.com>2021-03-20 19:42:18 +0100
commit2f5e8adb8d310690db54aca55382f4733e337a85 (patch)
tree40ae6b8f3219e1e3ac4c784dd83d0143a52dd70d /resources/js/components
parent1306d59960fadbd5637960e60b9a00f547a1aeb9 (diff)
downloadyota-laravel-2f5e8adb8d310690db54aca55382f4733e337a85.tar.gz
yota-laravel-2f5e8adb8d310690db54aca55382f4733e337a85.zip
Better names for Vuex actions and mutations.
Diffstat (limited to 'resources/js/components')
-rw-r--r--resources/js/components/activities.vue4
-rw-r--r--resources/js/components/call-sign-description.vue2
-rw-r--r--resources/js/components/call-sign-filter.vue2
-rw-r--r--resources/js/components/reservations.vue4
4 files changed, 6 insertions, 6 deletions
diff --git a/resources/js/components/activities.vue b/resources/js/components/activities.vue
index 2f2cf03..dd22c7f 100644
--- a/resources/js/components/activities.vue
+++ b/resources/js/components/activities.vue
@@ -37,7 +37,7 @@ import callSignFilter from './call-sign-filter.vue';
export default {
components: { callSignFilter },
mounted() {
- this.$store.dispatch('fillData');
+ this.$store.dispatch('pullActivities');
},
computed: {
activities() {
@@ -46,7 +46,7 @@ export default {
},
methods: {
filterChanged() {
- this.$store.dispatch('fillData');
+ this.$store.dispatch('pullActivities');
}
}
}
diff --git a/resources/js/components/call-sign-description.vue b/resources/js/components/call-sign-description.vue
index e930176..30cd37d 100644
--- a/resources/js/components/call-sign-description.vue
+++ b/resources/js/components/call-sign-description.vue
@@ -18,7 +18,7 @@
<script>
export default {
mounted() {
- this.$store.dispatch('fillSigns').then(() => {
+ this.$store.dispatch('pullSigns').then(() => {
try {
this.$store.dispatch('setSelectedSign', this.$store.getters.getSigns[0].sign);
}
diff --git a/resources/js/components/call-sign-filter.vue b/resources/js/components/call-sign-filter.vue
index bf554bd..16eaae8 100644
--- a/resources/js/components/call-sign-filter.vue
+++ b/resources/js/components/call-sign-filter.vue
@@ -11,7 +11,7 @@
<script>
export default {
mounted() {
- this.$store.dispatch('fillSigns');
+ this.$store.dispatch('pullSigns');
},
computed: {
selected: {
diff --git a/resources/js/components/reservations.vue b/resources/js/components/reservations.vue
index 278dfa4..8849474 100644
--- a/resources/js/components/reservations.vue
+++ b/resources/js/components/reservations.vue
@@ -38,7 +38,7 @@ import reservationView from './reservation.vue';
export default {
components: { callSignFilter, reservationView },
mounted() {
- this.$store.dispatch('fillReservations');
+ this.$store.dispatch('pullReservations');
},
computed: {
reservations() {
@@ -47,7 +47,7 @@ export default {
},
methods: {
filterChanged() {
- this.$store.dispatch('fillReservations');
+ this.$store.dispatch('pullReservations');
}
}
}