diff options
| author | dave <starpumadev@gmail.com> | 2019-02-19 12:38:49 -0500 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-02-19 12:38:49 -0500 |
| commit | 63cfe051c7f5419da3942632f3a5453f6cd5c769 (patch) | |
| tree | db3d6d38df7bbad17cfb5227a6b98caf1d5c4520 /src/lib/persisted_state.js | |
| parent | 962a33f887786dfdd2df57be66cd37b8ddb7d06d (diff) | |
#371: show notification when user setting's saved
Diffstat (limited to 'src/lib/persisted_state.js')
| -rw-r--r-- | src/lib/persisted_state.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/persisted_state.js b/src/lib/persisted_state.js index 6f7202ce..e828a74b 100644 --- a/src/lib/persisted_state.js +++ b/src/lib/persisted_state.js @@ -84,12 +84,12 @@ export default function createPersistedState ({ setState(key, reducer(state, paths), storage) .then(success => { if (typeof success !== 'undefined') { - if (mutation.type === 'setOption') { + if (mutation.type === 'setOption' || mutation.type === 'setCurrentUser') { store.dispatch('settingsSaved', { success }) } } }, error => { - if (mutation.type === 'setOption') { + if (mutation.type === 'setOption' || mutation.type === 'setCurrentUser') { store.dispatch('settingsSaved', { error }) } }) |
