1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

only titleize single word titles on action dialogs

This commit is contained in:
RaidMax
2022-10-25 14:03:35 -05:00
parent de94bf12bb
commit a2ccefd89d
3 changed files with 8 additions and 12 deletions

View File

@ -393,13 +393,8 @@
});
}
foreach (var interaction in Model.Interactions?.Where(i => (int?)ViewBag.User?.Level >= ((int?)i?.MinimumPermission ?? 0)))
foreach (var interaction in Model.Interactions.Where(i => (int)ViewBag.User.Level >= ((int?)i.MinimumPermission ?? 0)))
{
if (interaction is null)
{
continue;
}
menuItems.Items.Add(new SideContextMenuItem
{
Title = interaction.Name,