ensure accepted requests don't show

This commit is contained in:
FloatingGhost 2023-02-04 20:29:25 +00:00
parent fff0810f02
commit e5f5a0e672
2 changed files with 7 additions and 1 deletions

View File

@ -82,6 +82,12 @@ const FollowRequestCard = {
}, },
shouldConfirmDeny () { shouldConfirmDeny () {
return this.mergedConfig.modalOnDenyFollow 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
} }
} }
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<basic-user-card :user="user"> <basic-user-card :user="user" v-if="show">
<div class="follow-request-card-content-container"> <div class="follow-request-card-content-container">
<button <button
class="btn button-default" class="btn button-default"