mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
36 lines
848 B
C#
36 lines
848 B
C#
using Lantean.QBTMud.Models;
|
|
using Microsoft.AspNetCore.Components;
|
|
using MudBlazor;
|
|
|
|
namespace Lantean.QBTMud.Components.Dialogs
|
|
{
|
|
public partial class SubMenuDialog
|
|
{
|
|
[CascadingParameter]
|
|
IMudDialogInstance MudDialog { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
public UIAction? ParentAction { get; set; }
|
|
|
|
[Parameter]
|
|
public Dictionary<string, Torrent> Torrents { get; set; } = default!;
|
|
|
|
[Parameter]
|
|
public QBitTorrentClient.Models.Preferences? Preferences { get; set; }
|
|
|
|
[Parameter]
|
|
public IEnumerable<string> Hashes { get; set; } = [];
|
|
|
|
protected Task CloseDialog()
|
|
{
|
|
MudDialog.Close();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
protected void Cancel()
|
|
{
|
|
MudDialog.Cancel();
|
|
}
|
|
}
|
|
} |