Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@
(ngModelChange)="setTeamSelected(team.id, $event, team.name, tournamentClass)" />
</td>
<td class="align-middle">{{ tournamentClass }}</td>
<td class="align-middle text-nowrap">{{ team.name }}</td>
<td class="align-middle">
<div class="d-flex flex-row flex-wrap gap-2">
<span>{{ team.name }}</span>
@for (labelId of team.labelIds; track labelId) {
<tp-label [label]="getLabel(labelId)" />
}
</div>
</td>
@if (isFirst) {
<td [attr.rowspan]="filteredTeams.length" class="align-middle small">
<div>{{ application.contact }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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'
Expand Down Expand Up @@ -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));
}
Expand Down
Loading