mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-11-02 21:13:15 +00:00
29 lines
636 B
C#
29 lines
636 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MudBlazor;
|
|
|
|
namespace Lantean.QBTMudBlade.Components.Dialogs
|
|
{
|
|
public partial class SubMenuDialog
|
|
{
|
|
[CascadingParameter]
|
|
public MudDialogInstance MudDialog { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
public TorrentAction? ParentAction { get; set; }
|
|
|
|
[Parameter]
|
|
public IEnumerable<string> Hashes { get; set; } = [];
|
|
|
|
protected Task CloseDialog()
|
|
{
|
|
MudDialog.Close();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
protected void Cancel()
|
|
{
|
|
MudDialog.Cancel();
|
|
}
|
|
}
|
|
} |