Commit b27fb233 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Remove mutations from components, always mutate through actions

parent 7639fb18
<script> <script>
import { mapMutations } from 'vuex'; import { mapActions } from 'vuex';
import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue'; import timeAgoTooltip from '../../vue_shared/components/time_ago_tooltip.vue';
import * as types from '../stores/mutation_types'; import * as types from '../stores/mutation_types';
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
}, },
}, },
methods: { methods: {
...mapMutations({ ...mapActions([
setTargetNoteHash: types.SET_TARGET_NOTE_HASH, 'setTargetNoteHash'
}), ]),
handleToggle() { handleToggle() {
this.isExpanded = !this.isExpanded; this.isExpanded = !this.isExpanded;
this.toggleHandler(); this.toggleHandler();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment