mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 03:52:57 +00:00
Refine Pandoc button logic for different installation states
This commit is contained in:
parent
5b1e06e732
commit
3c0d2cd6fb
@ -195,9 +195,21 @@
|
|||||||
|
|
||||||
@if (this.pandocInstallation != default)
|
@if (this.pandocInstallation != default)
|
||||||
{
|
{
|
||||||
|
switch (this.pandocInstallation)
|
||||||
|
{
|
||||||
|
case { CheckWasSuccessful: true, IsAvailable: false }:
|
||||||
|
case { CheckWasSuccessful: false, IsAvailable: false }:
|
||||||
<MudButton Color="Color.Primary" OnClick="@this.ProceedToInstallation" Variant="Variant.Filled" Size="Size.Medium">
|
<MudButton Color="Color.Primary" OnClick="@this.ProceedToInstallation" Variant="Variant.Filled" Size="Size.Medium">
|
||||||
Proceed to installation
|
Proceed to installation
|
||||||
</MudButton>
|
</MudButton>
|
||||||
|
break;
|
||||||
|
|
||||||
|
case { CheckWasSuccessful: true, IsAvailable: true }:
|
||||||
|
<MudButton Color="Color.Default" OnClick="@this.ProceedToInstallation" Variant="Variant.Filled" Size="Size.Medium">
|
||||||
|
Re-install Pandoc
|
||||||
|
</MudButton>
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
|
Loading…
Reference in New Issue
Block a user