From 38e95c9102be79bd4e2eafcb916dd3383713fefc Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 16 Jan 2025 03:22:46 -0600 Subject: [PATCH] Fix import style --- .../Games/Components/ImportUploadDialog.razor | 46 ++++++++-------- .../Components/ImportUploadDialog.razor | 52 +++++++++---------- 2 files changed, 47 insertions(+), 51 deletions(-) diff --git a/LANCommander.Server/UI/Pages/Games/Components/ImportUploadDialog.razor b/LANCommander.Server/UI/Pages/Games/Components/ImportUploadDialog.razor index 2e0fdc8e..ead0cb94 100644 --- a/LANCommander.Server/UI/Pages/Games/Components/ImportUploadDialog.razor +++ b/LANCommander.Server/UI/Pages/Games/Components/ImportUploadDialog.razor @@ -11,33 +11,29 @@ @inject IJSRuntime JS @inject ILogger Logger - - - - -

Drag and Drop

-

or

-

- -

-
- @Options.Hint -
-
+ + + +

Drag and Drop

+

or

+

+ +

+
+ @Options.Hint +
- - - -
+ + - + Logger - - - - -

Drag and Drop

-

or

-

- -

-
- @Options.Hint -
-
- - - - -
+ + +

Drag and Drop

+

or

+

+ +

+
+ @Options.Hint +
- + @@ -53,6 +45,14 @@ string Filename; string Status; + protected override async Task OnInitializedAsync() + { + using (var storageLocationService = DatabaseServiceFactory.Create()) + { + StorageLocation = await storageLocationService.FirstAsync(l => l.Default && l.Type == StorageLocationType.Archive); + } + } + async Task Start() { await ChunkUploader.Start();