diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-05-02 11:19:05 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-05-02 11:19:05 +0000 |
| commit | 5f90b6a384583a00769eeca3a6c6e2deec8bdd24 (patch) | |
| tree | fb6b7307cbb3785ae0b1da17fe7b1ac730e9965f /src/components/notification/notification.js | |
| parent | c67e9daf068c5a7eafaa7ce6a6418c8916a4f118 (diff) | |
| parent | 92ccaa97bb0a2c15b96e2fbcf03823ba902dc516 (diff) | |
Merge branch 'fix/follow-request-notification-bugfixes' into 'develop'
Fix remaining follow request notif problems
Closes #823
See merge request pleroma/pleroma-fe!1096
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 6deee7d5..1ae81ce4 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -37,6 +37,7 @@ 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 => { @@ -46,8 +47,10 @@ const Notification = { }, denyUser () { this.$store.state.api.backendInteractor.denyUser({ id: this.user.id }) - this.$store.dispatch('removeFollowRequest', this.user) - this.$store.dispatch('dismissNotification', { id: this.notification.id }) + .then(() => { + this.$store.dispatch('dismissNotificationLocal', { id: this.notification.id }) + this.$store.dispatch('removeFollowRequest', this.user) + }) } }, computed: { |
