mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 23:18:00 +00:00
Removed unused config. component
This commit is contained in:
2 files changed
-31
No files matched your search
@@ -1,7 +0,0 @@
|
|||||||
@inherits ConfigurationBase
|
|
||||||
|
|
||||||
<MudField Label="@this.OptionDescription" Variant="Variant.Outlined" HelperText="@this.OptionHelp" Class="@MARGIN_CLASS">
|
|
||||||
<MudButton Variant="Variant.Filled" StartIcon="@this.TriggerIcon" OnClick="@this.Click">
|
|
||||||
@this.TriggerText
|
|
||||||
</MudButton>
|
|
||||||
</MudField>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
using Microsoft.AspNetCore.Components;
|
|
||||||
|
|
||||||
namespace AIStudio.Components;
|
|
||||||
|
|
||||||
public partial class ConfigurationTrigger : ConfigurationBase
|
|
||||||
{
|
|
||||||
[Parameter]
|
|
||||||
public string TriggerText { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public string TriggerIcon { get; set; } = Icons.Material.Filled.AddBox;
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public Action OnClickSync { get; set; } = () => { };
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public Func<Task> OnClickAsync { get; set; } = () => Task.CompletedTask;
|
|
||||||
|
|
||||||
private async Task Click()
|
|
||||||
{
|
|
||||||
this.OnClickSync();
|
|
||||||
await this.OnClickAsync();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user