aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-06 10:45:47 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-06 10:45:47 +0300
commitafdc3f96f0cd83a2f977992f68a30d7a531df7de (patch)
tree9db58232bb5db7c9f3956e1741534990aba11aa1 /src/components/notifications/notifications.js
parent61f34ff361a24a287ac0bf0c79fd2f77b4f2b708 (diff)
parentb761bcf3334e1f464e63a87de40eb75d0906d545 (diff)
fix conflicts, make subject update the preview
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 26ffbab6..d8a327b0 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, credentials })
+ },
computed: {
mainClass () {
return this.minimalMode ? '' : 'panel panel-default'
@@ -56,11 +61,6 @@ const Notifications = {
components: {
Notification
},
- created () {
- const { dispatch } = this.$store
-
- dispatch('fetchAndUpdateNotifications')
- },
watch: {
unseenCount (count) {
if (count > 0) {