aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-01 15:19:45 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-01 15:19:45 +0300
commita3e370e9f816e3c98028bf82e8ac020b8e294466 (patch)
treeff4b4877e1045d8d79a1990b05dcc27045dd91af /src
parent62d0bc47b333135f31abea90b4f5a3c28e608733 (diff)
add initial fetching back in a more streamlined way
Diffstat (limited to 'src')
-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 e999a18e..30187072 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -27,6 +27,11 @@ const Notifications = {
seenToDisplayCount: DEFAULT_SEEN_TO_DISPLAY_COUNT
}
},
+ created () {
+ const store = this.$store
+ const credentials = store.state.users.currentUser.credentials
+ notificationsFetcher.fetchAndUpdate({ store: this.$store, credentials })
+ },
computed: {
mainClass () {
return this.minimalMode ? '' : 'panel panel-default'