Formatting

This commit is contained in:
Thorsten Sommer 2025-05-29 21:32:25 +02:00
parent 8455450b51
commit 436852e354
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
automatically for you <strong>(recommended)</strong>. However you can download it yourself manually with the instructions below.
</MudJustifiedText>
</div>
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
<ExpansionPanel HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.OnExpandedChanged">
@if (this.isLoading)

View File

@ -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<PandocDialog>("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);
}