Pārlūkot izejas kodu

Auto close confirm dialog after approve/deny

Tusooa Zhu 2 gadi atpakaļ
vecāks
revīzija
1856eeda40
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/components/notification/notification.js

+ 2 - 0
src/components/notification/notification.js

@@ -104,6 +104,7 @@ const Notification = {
           notification.type = 'follow'
         }
       })
+      this.hideApproveConfirmDialog()
     },
     denyUser () {
       if (this.shouldConfirmDeny) {
@@ -118,6 +119,7 @@ const Notification = {
           this.$store.dispatch('dismissNotificationLocal', { id: this.notification.id })
           this.$store.dispatch('removeFollowRequest', this.user)
         })
+      this.hideDenyConfirmDialog()
     }
   },
   computed: {