diff --git a/app/MindWork AI Studio/Dialogs/PandocDialog.razor b/app/MindWork AI Studio/Dialogs/PandocDialog.razor index ba0b32bf..d86f6596 100644 --- a/app/MindWork AI Studio/Dialogs/PandocDialog.razor +++ b/app/MindWork AI Studio/Dialogs/PandocDialog.razor @@ -16,6 +16,7 @@ automatically for you (recommended). However you can download it yourself manually with the instructions below. + @if (this.isLoading) diff --git a/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs b/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs index 5547b0ef..1408f656 100644 --- a/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/PandocDialog.razor.cs @@ -35,6 +35,7 @@ public partial class PandocDialog : ComponentBase protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); + this.showSkeleton = true; await this.CheckPandocAvailabilityAsync(); PANDOC_VERSION = await Pandoc.FetchLatestVersionAsync(); @@ -49,6 +50,7 @@ public partial class PandocDialog : ComponentBase var pandocInstallation = await Pandoc.CheckAvailabilityAsync(this.RustService); this.isPandocAvailable = pandocInstallation.IsAvailable; this.showSkeleton = false; + await this.InvokeAsync(this.StateHasChanged); } @@ -56,6 +58,7 @@ public partial class PandocDialog : ComponentBase { await Pandoc.InstallAsync(this.RustService); this.MudDialog.Close(DialogResult.Ok(true)); + await this.DialogService.ShowAsync("pandoc dialog"); } @@ -65,6 +68,7 @@ public partial class PandocDialog : ComponentBase { var uri = await Pandoc.GenerateInstallerUriAsync(); var filename = this.FilenameFromUri(uri); + await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename); } @@ -72,6 +76,7 @@ public partial class PandocDialog : ComponentBase { var uri = await Pandoc.GenerateArchiveUriAsync(); var filename = this.FilenameFromUri(uri); + await this.JsRuntime.InvokeVoidAsync("triggerDownload", uri, filename); }