mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 16:32:57 +00:00
Refine Pandoc button logic for different installation states
This commit is contained in:
parent
5b1e06e732
commit
3c0d2cd6fb
@ -192,12 +192,24 @@
|
||||
<MudButton OnClick="@this.Cancel" Variant="Variant.Filled">
|
||||
Cancel
|
||||
</MudButton>
|
||||
|
||||
|
||||
@if (this.pandocInstallation != default)
|
||||
{
|
||||
<MudButton Color="Color.Primary" OnClick="@this.ProceedToInstallation" Variant="Variant.Filled" Size="Size.Medium">
|
||||
Proceed to installation
|
||||
</MudButton>
|
||||
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">
|
||||
Proceed to installation
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user