diff --git a/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.html b/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.html index 459e3ef5..fa3afd22 100644 --- a/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.html +++ b/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.html @@ -71,7 +71,14 @@ (ngModelChange)="setTeamSelected(team.id, $event, team.name, tournamentClass)" /> {{ tournamentClass }} - {{ team.name }} + +
+ {{ team.name }} + @for (labelId of team.labelIds; track labelId) { + + } +
+ @if (isFirst) {
{{ application.contact }}
diff --git a/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.ts b/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.ts index 9fd0c8d7..edcf33ea 100644 --- a/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.ts +++ b/src/Turnierplan.App/Client/src/app/portal/components/select-application-team/select-application-team.component.ts @@ -18,6 +18,8 @@ import { getPlanningRealms } from '../../../api/fn/planning-realms/get-planning- import { TurnierplanApi } from '../../../api/turnierplan-api'; import { getPlanningRealm } from '../../../api/fn/planning-realms/get-planning-realm'; import { getApplications } from '../../../api/fn/applications/get-applications'; +import { LabelDto } from '../../../api/models/label-dto'; +import { LabelComponent } from '../label/label.component'; export type SelectApplicationTeamResult = { name: string; @@ -36,7 +38,8 @@ export type SelectApplicationTeamResult = { ManageApplicationsFilterComponent, TooltipIconComponent, PaginationComponent, - TranslateDatePipe + TranslateDatePipe, + LabelComponent ], templateUrl: './select-application-team.component.html', styleUrl: './select-application-team.component.scss' @@ -179,6 +182,10 @@ export class SelectApplicationTeamComponent implements OnInit, OnDestroy { return this.planningRealmDetail?.tournamentClasses.find((x) => x.id === id)?.name ?? ''; } + protected getLabel(id: number): LabelDto { + return this.planningRealmDetail?.labels.find((x) => x.id === id)!; + } + protected filterTeams(teams: ApplicationTeamDto[]): ApplicationTeamDto[] { return teams.filter((team) => this.isTeamVisible(team)); }