diff options
Diffstat (limited to 'src/components/notification')
| -rw-r--r-- | src/components/notification/notification.js | 7 | ||||
| -rw-r--r-- | src/components/notification/notification.vue | 6 |
2 files changed, 8 insertions, 5 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: { diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index 02802776..f6da07dd 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -137,13 +137,13 @@ style="white-space: nowrap;" > <i - class="icon-ok button-icon add-reaction-button" + class="icon-ok button-icon follow-request-accept" :title="$t('tool_tip.accept_follow_request')" @click="approveUser()" /> <i - class="icon-cancel button-icon add-reaction-button" - :title="$t('tool_tip.accept_follow_request')" + class="icon-cancel button-icon follow-request-reject" + :title="$t('tool_tip.reject_follow_request')" @click="denyUser()" /> </div> |
