diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-23 19:32:53 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-26 10:34:18 +0300 |
commit | 7c7623222aeffdbf7ed2f513592d63b243f9dcbb (patch) | |
tree | cc100a49d65563ff83806f0e0fda28422590853e /src/store.js | |
parent | 886fd14249a02659b482b1aa6ba2b540bc9360e7 (diff) |
Track authors by step rather than transaction
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/store.js')
-rw-r--r-- | src/store.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/store.js b/src/store.js index a2d84806d..53a8a22ac 100644 --- a/src/store.js +++ b/src/store.js @@ -33,11 +33,16 @@ const store = new Vuex.Store({ showAuthorAnnotations: persistentStorage.getItem('showAuthorAnnotations') === 'true', }, mutations: { - setShowAuthorAnnotations(state, value) { + SET_SHOW_AUTHOR_ANNOTATIONS(state, value) { state.showAuthorAnnotations = value persistentStorage.setItem('showAuthorAnnotations', '' + value) }, }, + actions: { + setShowAuthorAnnotations({ commit }, value) { + store.commit('SET_SHOW_AUTHOR_ANNOTATIONS', value) + }, + }, }) export default store |