Disable lookup button if no title is entered

blazor
Pat Hartl 2023-03-03 18:57:30 -06:00
parent 576042323d
commit c767d72926
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<Input @bind-Value="@context.Title" /> <Input @bind-Value="@context.Title" />
</SpaceItem> </SpaceItem>
<SpaceItem> <SpaceItem>
<Button OnClick="() => GameMetadataLookup.SearchForGame(context.Title)" Type="@ButtonType.Primary">Lookup</Button> <Button OnClick="() => GameMetadataLookup.SearchForGame(context.Title)" Type="@ButtonType.Primary" Disabled="@(String.IsNullOrWhiteSpace(context.Title))">Lookup</Button>
</SpaceItem> </SpaceItem>
</Space> </Space>
</FormItem> </FormItem>