mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-04-14 23:41:37 +00:00
22 lines
591 B
C#
22 lines
591 B
C#
|
|
using AIStudio.Components;
|
||
|
|
using AIStudio.Settings.DataModel;
|
||
|
|
|
||
|
|
using Microsoft.AspNetCore.Components;
|
||
|
|
|
||
|
|
namespace AIStudio.Dialogs;
|
||
|
|
|
||
|
|
public partial class MandatoryInfoDialog : MSGComponentBase
|
||
|
|
{
|
||
|
|
[CascadingParameter]
|
||
|
|
private IMudDialogInstance MudDialog { get; set; } = null!;
|
||
|
|
|
||
|
|
[Parameter]
|
||
|
|
public DataMandatoryInfo Info { get; set; } = new();
|
||
|
|
|
||
|
|
[Parameter]
|
||
|
|
public DataMandatoryInfoAcceptance? Acceptance { get; set; }
|
||
|
|
|
||
|
|
private void Accept() => this.MudDialog.Close(DialogResult.Ok(true));
|
||
|
|
|
||
|
|
private void Reject() => this.MudDialog.Close(DialogResult.Ok(false));
|
||
|
|
}
|