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();