Don't display captain for individual events

This commit is contained in:
2025-12-12 14:05:29 -05:00
parent b465235096
commit 215b9dccca
2 changed files with 2 additions and 2 deletions
@@ -78,7 +78,7 @@
Href="@($"/teams/edit?id={team.Id}")" Href="@($"/teams/edit?id={team.Id}")"
Style="cursor: pointer;"> Style="cursor: pointer;">
@team @team
@if (isCaptain) @if (isCaptain && team.Event.EventFormat != EventFormat.Individual)
{ {
<MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" /> <MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" />
} }
@@ -14,7 +14,7 @@
<MudPaper Class="d-inline-flex pa-2 mx-3 my-1" Style="@($"background:{color};")"> <MudPaper Class="d-inline-flex pa-2 mx-3 my-1" Style="@($"background:{color};")">
@student.FirstName @student.FirstName
@if (captain) @if (captain && Team.Event.EventFormat != EventFormat.Individual)
{ {
<MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" /> <MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" />
} }