Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobjmarks committed May 7, 2024
1 parent 5fa272e commit 90ec3ba
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 126 deletions.
10 changes: 5 additions & 5 deletions Client/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
Enter a query string above and see how its value is bound to various .NET types
</MudText>
<MudStack Row="true" Class="flex-grow-1" Justify="Justify.FlexEnd">
<MudButton Variant="Variant.Text" Disabled="@(!bindingResults.Any())" Size="Size.Small"
<MudButton Variant="Variant.Text" Disabled="@(!_bindingResults.Any())" Size="Size.Small"
Color="Color.Primary" StartIcon="@Icons.Material.Filled.Share" OnClick="GetSharableLink">
Copy link
</MudButton>
<MudButton Variant="Variant.Text" Disabled="@(!bindingResults.Any())" Size="Size.Small"
<MudButton Variant="Variant.Text" Disabled="@(!_bindingResults.Any())" Size="Size.Small"
Color="Color.Primary" StartIcon="@Icons.Material.Filled.Clear" OnClick="Clear">
Clear results
</MudButton>
Expand Down Expand Up @@ -56,15 +56,15 @@
</MudSwitch>

<MudButton Color="Color.Primary" OnClick="UseDefaultConfiguration"
Disabled="@(ConfigurationIsDefault())">
Disabled="IsConfigurationDefault">
Use Defaults
</MudButton>
</MudStack>
</ChildContent>
</MudExpansionPanel>
</MudExpansionPanels>

<MudTable Items="@bindingResults" Dense="true" Breakpoint="Breakpoint.None" Loading="@loadingIndicator"
<MudTable Items="@_bindingResults" Dense="true" Breakpoint="Breakpoint.None" Loading="@_loadingIndicator"
Filter="ResultTableFilter">
<HeaderContent>
<MudTh>Parameter Type</MudTh>
Expand Down Expand Up @@ -128,7 +128,7 @@
</MudTable>
@{
int? erroneousCount = null;
if (!ShowErroneous && (erroneousCount = bindingResults.Count(r => r.AllErroneous)) > 0)
if (!ShowErroneous && (erroneousCount = _bindingResults.Count(r => r.AllErroneous)) > 0)
{
<MudStack Row="true" AlignItems="AlignItems.Center" Class="pl-2">
<MudText Typo="Typo.body2">
Expand Down
Loading

0 comments on commit 90ec3ba

Please sign in to comment.