瀏覽代碼

Auto close confirm dialog after approve/deny

Tusooa Zhu 2 年之前
父節點
當前提交
1856eeda40
共有 1 個文件被更改,包括 2 次插入0 次删除
  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: {