Improvements to group following

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-10-25 16:53:46 +02:00
parent 3e74982ec4
commit d0b125064f
8 changed files with 57 additions and 23 deletions

View File

@@ -107,11 +107,17 @@ export default class GroupMixin extends Vue {
}
get isCurrentActorFollowing(): boolean {
return this.currentActorFollow !== null;
return this.currentActorFollow?.approved === true;
}
get isCurrentActorPendingFollow(): boolean {
return this.currentActorFollow?.approved === false;
}
get isCurrentActorFollowingNotify(): boolean {
return this.currentActorFollow?.notify === true;
return (
this.isCurrentActorFollowing && this.currentActorFollow?.notify === true
);
}
get currentActorFollow(): IFollower | null {