Display member tiles recursively

This commit is contained in:
2023-08-26 12:22:39 +02:00
parent cb79a2755e
commit ed5bd63bf6
2 changed files with 75 additions and 21 deletions

View File

@ -112,7 +112,7 @@ export class Member implements MemberDataApi {
return firstName.length === 0
? this.last_name ?? ""
: `${firstName} ${this.last_name ?? ""}`;
: `${firstName} ${this.last_name?.toUpperCase() ?? ""}`;
}
get invertedFullName(): string {
@ -159,6 +159,13 @@ export class Member implements MemberDataApi {
};
}
get displayBirthDeath(): string {
let birthDeath = [];
if (this.dateOfBirth) birthDeath.push(fmtDate(this.dateOfBirth));
if (this.dateOfDeath) birthDeath.push(fmtDate(this.dateOfDeath));
return birthDeath.join(" - ");
}
get hasContactInfo(): boolean {
return this.email ||
this.phone ||