Skip to content

Commit

Permalink
Add erroneous count indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobjmarks committed Apr 21, 2024
1 parent 43fdbf3 commit e5fbbae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Client/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,19 @@
</MudTd>
</RowTemplate>
</MudTable>
@{
int? erroneousCount = null;
if (!showErroneous && (erroneousCount = bindingResults.Count(r => r.IsErroneous)) > 0)
{
<MudStack Row="true" AlignItems="AlignItems.Center" Class="pl-2">
<MudText Typo="Typo.body2">
@(erroneousCount) other types could not be bound.
<MudText Class="d-inline cursor-pointer" Typo="Typo.inherit" Color="Color.Primary"
@onclick="() => showErroneous = true">
Show them
</MudText>
</MudText>
</MudStack>
}
}
</MudStack>

0 comments on commit e5fbbae

Please sign in to comment.