Can filter couples

This commit is contained in:
2023-08-17 14:59:06 +02:00
parent e753710964
commit fa7d60726f
3 changed files with 82 additions and 11 deletions

View File

@ -115,6 +115,14 @@ export class Member implements MemberDataApi {
: `${firstName} ${this.last_name ?? ""}`;
}
get invertedFullName(): string {
const lastName = this.last_name ?? "";
return lastName.length === 0
? this.last_name ?? ""
: `${lastName} ${this.first_name ?? ""}`;
}
get hasPhoto(): boolean {
return this.photo_id !== null;
}