diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-01 15:19:45 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-01 15:19:45 +0300 |
| commit | a3e370e9f816e3c98028bf82e8ac020b8e294466 (patch) | |
| tree | ff4b4877e1045d8d79a1990b05dcc27045dd91af /src/components/notifications/notifications.js | |
| parent | 62d0bc47b333135f31abea90b4f5a3c28e608733 (diff) | |
add initial fetching back in a more streamlined way
Diffstat (limited to 'src/components/notifications/notifications.js')
| -rw-r--r-- | src/components/notifications/notifications.js | 5 |
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' |
