Skip to content

Commit

Permalink
Fix some store issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Joossensei committed Dec 14, 2021
1 parent c829273 commit d725348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions assets/js/app/listing/Components/SelectBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
track-by="key"
:options="options"
>
<template slot="option" slot-scope="props">
<template v-slot:option="props">
<span :class="props.option.class"></span>
<span>
{{ props.option.value }}
Expand Down Expand Up @@ -48,6 +48,7 @@

<script>
import Multiselect from 'vue-multiselect';
import store from '../store';
export default {
name: 'ListingSelectedBox',
Expand Down Expand Up @@ -99,13 +100,13 @@ export default {
return '';
},
selectedCount() {
return this.$store.getters['selecting/selectedCount'];
return store.getters['selecting/selectedCount'];
},
selected() {
return this.$store.getters['selecting/selected'];
return store.getters['selecting/selected'];
},
order() {
return this.$store.getters['listing/getOrder'];
return store.getters['listing/getOrder'];
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions assets/js/app/sidebar/Components/_SidebarToggler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
},
computed: {
slim() {
return store.getters['general/slimSidebar'] ? this.$store.getters['general/slimSidebar'] : false;
return store.getters['general/slimSidebar'] ? store.getters['general/slimSidebar'] : false;
},
},
watch: {
Expand All @@ -29,7 +29,7 @@ export default {
},
methods: {
slimSidebar(arg) {
this.$store.dispatch('general/slimSidebar', arg);
store.dispatch('general/slimSidebar', arg);
},
},
};
Expand Down

0 comments on commit d725348

Please sign in to comment.