mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
add ban management page
This commit is contained in:
@ -142,7 +142,7 @@ namespace WebfrontCore.Controllers
|
||||
}));
|
||||
}
|
||||
|
||||
public IActionResult UnbanForm()
|
||||
public IActionResult UnbanForm(long? id)
|
||||
{
|
||||
var info = new ActionInfo
|
||||
{
|
||||
@ -159,6 +159,15 @@ namespace WebfrontCore.Controllers
|
||||
Action = "UnbanAsync",
|
||||
ShouldRefresh = true
|
||||
};
|
||||
if (id is not null)
|
||||
{
|
||||
info.Inputs.Add(new()
|
||||
{
|
||||
Name = "targetId",
|
||||
Value = id.ToString(),
|
||||
Type = "hidden"
|
||||
});
|
||||
}
|
||||
|
||||
return View("_ActionForm", info);
|
||||
}
|
||||
|
Reference in New Issue
Block a user