From 389c6874203c95cdfd2359ac5673dccbb0333e6b Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 28 Apr 2022 10:09:25 -0500 Subject: [PATCH] fix issue with kick from profile --- WebfrontCore/ViewModels/SideContextMenuItem.cs | 1 + WebfrontCore/Views/Client/Profile/Index.cshtml | 7 ++++++- WebfrontCore/Views/Shared/_Layout.cshtml | 8 ++++---- WebfrontCore/Views/Shared/_SideContextMenu.cshtml | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/WebfrontCore/ViewModels/SideContextMenuItem.cs b/WebfrontCore/ViewModels/SideContextMenuItem.cs index e583fb335..96631d5ee 100644 --- a/WebfrontCore/ViewModels/SideContextMenuItem.cs +++ b/WebfrontCore/ViewModels/SideContextMenuItem.cs @@ -11,6 +11,7 @@ public class SideContextMenuItem public string Reference { get; set; } public string Icon { get; set; } public string Tooltip { get; set; } + public int? EntityId { get; set; } } diff --git a/WebfrontCore/Views/Client/Profile/Index.cshtml b/WebfrontCore/Views/Client/Profile/Index.cshtml index 72a2689ac..bbb1e998e 100644 --- a/WebfrontCore/Views/Client/Profile/Index.cshtml +++ b/WebfrontCore/Views/Client/Profile/Index.cshtml @@ -275,6 +275,7 @@ IsButton = true, Reference = "edit", Icon = "oi-cog", + EntityId = Model.ClientId }); } @@ -294,7 +295,8 @@ Title = isFlagged ? "Unflag" : "Flag", IsButton = true, Reference = isFlagged ? "unflag" : "flag", - Icon = "oi-flag" + Icon = "oi-flag", + EntityId = Model.ClientId }); } @@ -306,6 +308,7 @@ IsButton = true, Reference = "kick", Icon = "oi-circle-x", + EntityId = Model.ClientId }); } @@ -317,6 +320,7 @@ IsButton = true, Reference = "ban", Icon = "oi-lock-unlocked", + EntityId = Model.ClientId }); } @@ -328,6 +332,7 @@ IsButton = true, Reference = "unban", Icon = "oi-lock-locked", + EntityId = Model.ClientId }); } } diff --git a/WebfrontCore/Views/Shared/_Layout.cshtml b/WebfrontCore/Views/Shared/_Layout.cshtml index 18363a292..c39617d6c 100644 --- a/WebfrontCore/Views/Shared/_Layout.cshtml +++ b/WebfrontCore/Views/Shared/_Layout.cshtml @@ -48,7 +48,7 @@