mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-01 08:50:53 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
18 lines
474 B
C#
18 lines
474 B
C#
using AIStudio.Components;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AIStudio.Dialogs;
|
|
|
|
public partial class AssistantDraftDialog : MSGComponentBase
|
|
{
|
|
[CascadingParameter]
|
|
private IMudDialogInstance MudDialog { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public string DraftMarkdown { get; set; } = string.Empty;
|
|
|
|
private void Cancel() => this.MudDialog.Cancel();
|
|
|
|
private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.DraftMarkdown));
|
|
}
|