Disable select button when nothing is selected
This commit is contained in:
parent
e5ba574468
commit
266864338d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
@{
|
||||
RenderFragment Footer =
|
||||
@<Template>
|
||||
<Button OnClick="SelectGame" Disabled="@(Loading || Results.Count() == 0)" Type="@ButtonType.Primary">Select</Button>
|
||||
<Button OnClick="SelectGame" Disabled="@(Loading || (SelectedResults != null && SelectedResults.Count() == 0) || Results.Count() == 0)" Type="@ButtonType.Primary">Select</Button>
|
||||
<Button OnClick="() => ModalVisible = false">Cancel</Button>
|
||||
</Template>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue