Commit 86084023 authored by Paul Slaughter's avatar Paul Slaughter

Export mr_notes module as function

This is helpful at ensuring a fresh store between
specs.
parent e05d26fe
......@@ -9,7 +9,7 @@ Vue.use(Vuex);
export const createStore = () =>
new Vuex.Store({
modules: {
page: mrPageModule,
page: mrPageModule(),
notes: notesModule(),
diffs: diffsModule(),
},
......
......@@ -2,11 +2,11 @@ import actions from '../actions';
import getters from '../getters';
import mutations from '../mutations';
export default {
export default () => ({
state: {
activeTab: null,
},
actions,
getters,
mutations,
};
});
......@@ -10,7 +10,7 @@ Vue.use(Vuex);
export const createStore = () =>
new Vuex.Store({
modules: {
page: mrPageModule,
page: mrPageModule(),
notes: notesModule(),
diffs: diffsModule(),
batchComments: batchCommentsModule(),
......
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