This commit is contained in:
1 parent
673f9f1706
commit
59519cb182
2 files changed
+3
-3
No files matched your search
@@ -28,7 +28,7 @@
|
|||||||
<td class="align-middle">{{ registration.player.club }}</td>
|
<td class="align-middle">{{ registration.player.club }}</td>
|
||||||
@if (event.doublesEvent) {
|
@if (event.doublesEvent) {
|
||||||
<td class="align-middle">{{ registration.partner?.club }}</td>
|
<td class="align-middle">{{ registration.partner?.club }}</td>
|
||||||
<td class="align-middle">{{ registration.partner | fullName }}</td>
|
<td class="align-middle">{{ registration.partner | fullName: '' }}</td>
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|||||||
standalone: true
|
standalone: true
|
||||||
})
|
})
|
||||||
export class FullNamePipe implements PipeTransform {
|
export class FullNamePipe implements PipeTransform {
|
||||||
transform(person: any, args?: any): any {
|
transform(person: any, defaultValue: string = 'Invalteller'): any {
|
||||||
if (person) {
|
if (person) {
|
||||||
return [person.firstName, person.middleName, person.lastName].filter(Boolean).join(" ");
|
return [person.firstName, person.middleName, person.lastName].filter(Boolean).join(" ");
|
||||||
} else {
|
} else {
|
||||||
return "Invalteller";
|
return defaultValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user