Don't display captain for individual events
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
Href="@($"/teams/edit?id={team.Id}")"
|
||||
Style="cursor: pointer;">
|
||||
@team
|
||||
@if (isCaptain)
|
||||
@if (isCaptain && team.Event.EventFormat != EventFormat.Individual)
|
||||
{
|
||||
<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};")">
|
||||
@student.FirstName
|
||||
@if (captain)
|
||||
@if (captain && Team.Event.EventFormat != EventFormat.Individual)
|
||||
{
|
||||
<MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user