Unify archive file inputs

This commit is contained in:
Pat Hartl 2023-08-02 18:55:32 -05:00
parent 0e9f8b612c
commit 4abef5c61f
2 changed files with 2 additions and 21 deletions

View file

@ -11,16 +11,7 @@
<Input Type="text" @bind-Value="context.Name" />
</PropertyColumn>
<PropertyColumn Property="a => a.Path">
<Space Style="display: flex">
<SpaceItem Style="flex-grow: 1">
<Input Type="text" @bind-Value="context.Path" />
</SpaceItem>
@if (ArchiveId != Guid.Empty) {
<SpaceItem>
<Button OnClick="() => BrowseForActionPath(context)" Type="@ButtonType.Primary" Icon="@IconType.Outline.FolderOpen" />
</SpaceItem>
}
</Space>
<InputArchiveFile @bind-Value="context.Path" ArchiveId="@ArchiveId" AllowDirectories="true" />
</PropertyColumn>
<PropertyColumn Property="a => a.Arguments">
<Input Type="text" @bind-Value="context.Arguments" />

View file

@ -59,17 +59,7 @@
<Input @bind-Value="@context.SortTitle" />
</FormItem>
<FormItem Label="Icon">
<Space Style="display: flex">
<SpaceItem Style="flex-grow: 1">
<Input @bind-Value="@context.Icon" />
</SpaceItem>
@if (LatestArchiveId != Guid.Empty)
{
<SpaceItem>
<Button OnClick="BrowseForIcon" Type="@ButtonType.Primary">Browse</Button>
</SpaceItem>
}
</Space>
<InputArchiveFile @bind-Value="context.Icon" ArchiveId="@LatestArchiveId" AllowDirectories="true" />
</FormItem>
<FormItem Label="Description">
<TextArea @bind-Value="@context.Description" MaxLength=500 ShowCount />