We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 034e137 + d6a5f00 commit b1438beCopy full SHA for b1438be
DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml
@@ -58,7 +58,15 @@
58
{
59
if (centreRow.CentreId == admin.CentreId)
60
61
- <a asp-action="RedirectToAdmin" asp-route-AdminId="@admin.Id">Admin@(admin.Active ? "" : "(Inactive)")</a>
+ bool IsDelegateActive = false;
62
+ foreach (var delegates in Model.UserEntity.DelegateAccounts)
63
+ {
64
+ if (centreRow.CentreId == delegates.CentreId)
65
66
+ IsDelegateActive = delegates.Active;
67
+ }
68
69
+ <a asp-action="RedirectToAdmin" asp-route-AdminId="@admin.Id">Admin@(!admin.Active && IsDelegateActive ? "(Inactive)" : "")</a>
70
}
71
72
0 commit comments