mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:19:46 +00:00
19 lines
524 B
C#
19 lines
524 B
C#
|
using Microsoft.AspNetCore.Components;
|
||
|
|
||
|
namespace AIStudio.Components.CommonDialogs;
|
||
|
|
||
|
public partial class RenameDialog : ComponentBase
|
||
|
{
|
||
|
[CascadingParameter]
|
||
|
private MudDialogInstance MudDialog { get; set; } = null!;
|
||
|
|
||
|
[Parameter]
|
||
|
public string Message { get; set; } = string.Empty;
|
||
|
|
||
|
[Parameter]
|
||
|
public string UserInput { get; set; } = string.Empty;
|
||
|
|
||
|
private void Cancel() => this.MudDialog.Cancel();
|
||
|
|
||
|
private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.UserInput));
|
||
|
}
|