mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
Update project name and namespaces
This commit is contained in:
36
Lantean.QBTMud/Components/Dialogs/SubMenuDialog.razor.cs
Normal file
36
Lantean.QBTMud/Components/Dialogs/SubMenuDialog.razor.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Lantean.QBTMud.Models;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using MudBlazor;
|
||||
|
||||
namespace Lantean.QBTMud.Components.Dialogs
|
||||
{
|
||||
public partial class SubMenuDialog
|
||||
{
|
||||
[CascadingParameter]
|
||||
public MudDialogInstance 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user