mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 23:29:06 +00:00
18 lines
454 B
C#
18 lines
454 B
C#
|
using Microsoft.AspNetCore.Components;
|
||
|
|
||
|
using MudBlazor;
|
||
|
|
||
|
namespace AIStudio.Components.CommonDialogs;
|
||
|
|
||
|
public partial class ConfirmDialog : ComponentBase
|
||
|
{
|
||
|
[CascadingParameter]
|
||
|
private MudDialogInstance MudDialog { get; set; } = null!;
|
||
|
|
||
|
[Parameter]
|
||
|
public string Message { get; set; } = string.Empty;
|
||
|
|
||
|
private void Cancel() => this.MudDialog.Cancel();
|
||
|
|
||
|
private void Confirm() => this.MudDialog.Close(DialogResult.Ok(true));
|
||
|
}
|