aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-02 10:46:43 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-02 10:46:43 +0300
commit685ab4f33ee57e1dc4997b58314e5c0d38581e9d (patch)
tree32d7210cd119b80b803eaf863966937fa0dea20d
parent1293bec77e5137acf64d3536c286f8ba3df284f4 (diff)
make the addNotice dispatch return the notice
-rw-r--r--src/modules/interface.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/interface.js b/src/modules/interface.js
index 338ef651..e31630fc 100644
--- a/src/modules/interface.js
+++ b/src/modules/interface.js
@@ -106,6 +106,7 @@ const interfaceMod = {
setTimeout(() => dispatch('removeGlobalNotice', notice), timeout)
}
commit('pushGlobalNotice', notice)
+ return notice
},
removeGlobalNotice ({ commit }, notice) {
commit('removeGlobalNotice', notice)