improved initial notifications fetching

This commit is contained in:
Henry Jameson 2019-11-24 22:01:12 +02:00
parent 319bb4ac28
commit 172ebaf4e6
4 changed files with 33 additions and 6 deletions

View file

@ -47,6 +47,11 @@ const Notifications = {
components: {
Notification
},
created () {
const { dispatch } = this.$store
dispatch('fetchAndUpdateNotifications')
},
watch: {
unseenCount (count) {
if (count > 0) {