aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-11-24 22:01:12 +0200
committerHenry Jameson <me@hjkos.com>2019-11-24 22:01:12 +0200
commit172ebaf4e67358852bfaafd8f069763ca5e602b1 (patch)
tree0f7112dfb973809a201413dc24fcc4f855002295 /src/components/notifications/notifications.js
parent319bb4ac2895b8eb62da42e3f95addc9bb67b1a0 (diff)
improved initial notifications fetching
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 6c4054fd..a89c0cdc 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -47,6 +47,11 @@ const Notifications = {
components: {
Notification
},
+ created () {
+ const { dispatch } = this.$store
+
+ dispatch('fetchAndUpdateNotifications')
+ },
watch: {
unseenCount (count) {
if (count > 0) {