make the addNotice dispatch return the notice

This commit is contained in:
Shpuld Shpuldson 2020-07-02 10:46:43 +03:00
parent 1293bec77e
commit 685ab4f33e

View file

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