add initial fetching back in a more streamlined way

This commit is contained in:
Shpuld Shpuldson 2020-07-01 15:19:45 +03:00
parent 62d0bc47b3
commit a3e370e9f8
1 changed files with 5 additions and 0 deletions

View File

@ -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'