make the addNotice dispatch return the notice

fix/aggregate-notification-settings
Shpuld Shpuldson 4 years ago
parent 1293bec77e
commit 685ab4f33e

@ -106,6 +106,7 @@ const interfaceMod = {
setTimeout(() => dispatch('removeGlobalNotice', notice), timeout) setTimeout(() => dispatch('removeGlobalNotice', notice), timeout)
} }
commit('pushGlobalNotice', notice) commit('pushGlobalNotice', notice)
return notice
}, },
removeGlobalNotice ({ commit }, notice) { removeGlobalNotice ({ commit }, notice) {
commit('removeGlobalNotice', notice) commit('removeGlobalNotice', notice)

Loading…
Cancel
Save