Skip to content

Open source personal finance application

Update ui view when chart diff changes

ilkome813a2020cb05
diff --git a/src/components/stat/store/actions.js b/src/components/stat/store/actions.js
index 339b32f9..6a2e1621 100644
--- a/src/components/stat/store/actions.js
+++ b/src/components/stat/store/actions.js
@@ -1,5 +1,10 @@
export default {
async initStat ({ rootState, dispatch, commit }) {
//
+ },
+
+ setDiffPeriods ({ commit, dispatch }, value) {
+ commit('setDiffPeriods', value)
+ dispatch('saveUiView')
}
}