Hide Document Templates & UI Tweaks
Flag Document Templates as hidden. UI changes aim to improve visibility of used features in lists.
This commit is contained in:
@@ -53,7 +53,15 @@ namespace Disco.Web.Areas.Config.Controllers
|
||||
// List Index
|
||||
var m = new Models.UserFlag.IndexModel()
|
||||
{
|
||||
UserFlags = Database.UserFlags.OrderBy(f => f.Name).ToList()
|
||||
UserFlags = Database.UserFlags
|
||||
.Select(uf => new
|
||||
{
|
||||
userFlag = uf,
|
||||
assignmentCount = uf.UserFlagAssignments.Count(fa => !fa.RemovedDate.HasValue)
|
||||
})
|
||||
.ToDictionary(
|
||||
pair => pair.userFlag,
|
||||
pair => pair.assignmentCount)
|
||||
};
|
||||
|
||||
// UI Extensions
|
||||
|
||||
Reference in New Issue
Block a user