mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04:32:56 +00:00
Rename isLoading to isLoadingLicence in the PandocDialog component
This commit is contained in:
parent
5e6b1188b1
commit
e4b2d6ff0a
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
|
<MudExpansionPanels Class="mb-3" MultiExpansion="@false" Outlined="false" Elevation="0">
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Verified" HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.WhenExpandingLicence">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Verified" HeaderText="View GNU General Public License v2 (GPL)" MaxHeight="300" ExpandedChanged="this.WhenExpandingLicence">
|
||||||
@if (this.isLoading)
|
@if (this.isLoadingLicence)
|
||||||
{
|
{
|
||||||
<MudSkeleton />
|
<MudSkeleton />
|
||||||
<MudSkeleton Animation="Animation.Wave" />
|
<MudSkeleton Animation="Animation.Wave" />
|
||||||
|
@ -37,7 +37,7 @@ public partial class PandocDialog : ComponentBase
|
|||||||
private bool showSkeleton;
|
private bool showSkeleton;
|
||||||
private bool showInstallPage;
|
private bool showInstallPage;
|
||||||
private string? licenseText;
|
private string? licenseText;
|
||||||
private bool isLoading;
|
private bool isLoadingLicence;
|
||||||
private int selectedInstallerIndex = SelectInstallerIndex();
|
private int selectedInstallerIndex = SelectInstallerIndex();
|
||||||
private int selectedArchiveIndex = SelectArchiveIndex();
|
private int selectedArchiveIndex = SelectArchiveIndex();
|
||||||
private string downloadUrlArchive = string.Empty;
|
private string downloadUrlArchive = string.Empty;
|
||||||
@ -108,7 +108,7 @@ public partial class PandocDialog : ComponentBase
|
|||||||
{
|
{
|
||||||
if (isExpanded)
|
if (isExpanded)
|
||||||
{
|
{
|
||||||
this.isLoading = true;
|
this.isLoadingLicence = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
this.licenseText = await this.LoadLicenseTextAsync();
|
this.licenseText = await this.LoadLicenseTextAsync();
|
||||||
@ -120,7 +120,7 @@ public partial class PandocDialog : ComponentBase
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
this.isLoading = false;
|
this.isLoadingLicence = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user