From e5f5a0e672edb14dadfc4266a9a7a5778c7f8bcc Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 4 Feb 2023 20:29:25 +0000 Subject: [PATCH] ensure accepted requests don't show --- src/components/follow_request_card/follow_request_card.js | 6 ++++++ src/components/follow_request_card/follow_request_card.vue | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/follow_request_card/follow_request_card.js b/src/components/follow_request_card/follow_request_card.js index 06af2489..86a0edba 100644 --- a/src/components/follow_request_card/follow_request_card.js +++ b/src/components/follow_request_card/follow_request_card.js @@ -82,6 +82,12 @@ const FollowRequestCard = { }, shouldConfirmDeny () { return this.mergedConfig.modalOnDenyFollow + }, + show () { + console.log("SHOW", this.$store.state.api.followRequests); + const notifId = this.$store.state.api.followRequests.find(req => req.id === this.user.id) + + return notifId !== undefined } } } diff --git a/src/components/follow_request_card/follow_request_card.vue b/src/components/follow_request_card/follow_request_card.vue index 835471e7..80445021 100644 --- a/src/components/follow_request_card/follow_request_card.vue +++ b/src/components/follow_request_card/follow_request_card.vue @@ -1,5 +1,5 @@