aboutsummaryrefslogtreecommitdiff
path: root/src/lib/persisted_state.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-02-20 14:42:27 +0000
committerShpuld Shpludson <shp@cock.li>2019-02-20 14:42:27 +0000
commitcfdd885e041d69262e5a0aaaac8de1f39a926484 (patch)
tree9d814dd3855a1bdc9ad6459da1cc063939b9e326 /src/lib/persisted_state.js
parenta49f6dbf65bb9b7d8450853cb5c868fac2e37fe0 (diff)
parent63cfe051c7f5419da3942632f3a5453f6cd5c769 (diff)
Merge branch 'issue-371-user-setting-notification' into 'develop'
#371: show notification when user setting's saved Closes #371 See merge request pleroma/pleroma-fe!598
Diffstat (limited to 'src/lib/persisted_state.js')
-rw-r--r--src/lib/persisted_state.js4
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 })
}
})