diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-05-02 10:52:57 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-05-02 16:21:46 +0300 |
| commit | 20b53d58b753075bb1bda49d0595eba02ed5f755 (patch) | |
| tree | 3618f5ff455bfefe0507557cf5d0fe2eda8e504d /src/components/notification/notification.js | |
| parent | 36dcfa8cc1315be65a47c041a8c926ff961b3ae4 (diff) | |
mark single notifs as seen properly on server
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 8c20ff09..abe3bebe 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -37,11 +37,11 @@ const Notification = { approveUser () { this.$store.state.api.backendInteractor.approveUser({ id: this.user.id }) this.$store.dispatch('removeFollowRequest', this.user) + this.$store.dispatch('markSingleNotificationAsSeen', { id: this.notification.id }) this.$store.dispatch('updateNotification', { id: this.notification.id, updater: notification => { notification.type = 'follow' - notification.seen = true } }) }, |
