Only allow browse for icon if the game has an archive

This commit is contained in:
Pat Hartl 2023-03-03 18:57:15 -06:00
parent f1b852c9ef
commit 576042323d

View file

@ -37,9 +37,12 @@
<SpaceItem Style="flex-grow: 1"> <SpaceItem Style="flex-grow: 1">
<Input @bind-Value="@context.Icon" /> <Input @bind-Value="@context.Icon" />
</SpaceItem> </SpaceItem>
<SpaceItem> @if (context.Archives != null && context.Archives.Count > 0)
<Button OnClick="BrowseForIcon" Type="@ButtonType.Primary">Browse</Button> {
</SpaceItem> <SpaceItem>
<Button OnClick="BrowseForIcon" Type="@ButtonType.Primary">Browse</Button>
</SpaceItem>
}
</Space> </Space>
</FormItem> </FormItem>
<FormItem Label="Description"> <FormItem Label="Description">