Use file picker input on games

dhcp-server
Pat Hartl 2023-09-11 17:57:40 -05:00
parent d54bf3c4e8
commit fda3f01847
1 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@
<Input @bind-Value="@context.SortTitle" />
</FormItem>
<FormItem Label="Icon">
<ArchiveFilePicker @bind-Value="context.Icon" ArchiveId="@LatestArchiveId" AllowDirectories="true" />
<FilePicker @bind-Value="context.Icon" ArchiveId="@LatestArchiveId" AllowDirectories="true" />
</FormItem>
<FormItem Label="Notes">
<TextArea @bind-Value="@context.Notes" MaxLength=2000 ShowCount />
@ -161,7 +161,7 @@ else
IEnumerable<Genre> Genres;
IEnumerable<Data.Models.Tag> Tags;
ArchiveFilePickerDialog ArchiveFilePickerDialog;
FilePickerDialog ArchiveFilePickerDialog;
Modal FileSelectorModal;
@ -251,14 +251,14 @@ else
OkText = "Select File"
};
var browserOptions = new ArchiveFilePickerOptions()
var browserOptions = new FilePickerOptions()
{
ArchiveId = Game.Archives.FirstOrDefault().Id,
Select = true,
Multiple = false
};
var modalRef = await ModalService.CreateModalAsync<ArchiveFilePickerDialog, ArchiveFilePickerOptions, IEnumerable<IFileManagerEntry>>(modalOptions, browserOptions);
var modalRef = await ModalService.CreateModalAsync<FilePickerDialog, FilePickerOptions, IEnumerable<IFileManagerEntry>>(modalOptions, browserOptions);
modalRef.OnOk = (results) =>
{