Don't display captain for individual events
This commit is contained in:
@@ -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;" />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user