Only allow browse for icon if the game has an archive

blazor
Pat Hartl 2023-03-03 18:57:15 -06:00
parent f1b852c9ef
commit 576042323d
1 changed files with 6 additions and 3 deletions

View File

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