removes hacks from notifications storage, adds api call to let server update

is_seen attribute
This commit is contained in:
Henry Jameson 2018-12-02 13:36:11 +03:00
parent e15b9bddbb
commit b555d617e4
4 changed files with 26 additions and 10 deletions

View file

@ -52,7 +52,7 @@ const Notifications = {
},
methods: {
markAsSeen () {
this.$store.commit('markNotificationsAsSeen', this.visibleNotifications)
this.$store.dispatch('markNotificationsAsSeen', this.visibleNotifications)
},
fetchOlderNotifications () {
const store = this.$store