From 31c4a3d6553ad09a6d04426939b7ffff4b494385 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 6 Aug 2019 11:34:51 -0400 Subject: [PATCH] LP1823981 Angular perm group admin UX improvements * Loading progress now increments as data arrives. * Application perm list is now sorted * Deleted map now use warning background instead of danger as it appears to have better contrast. * Inherited perms display the label 'Inherited' in the delete colum. * Remove border boxes around non-actionable inherited values. * Use Bootstrap button links instead of for links to perm groups to improve contrast and consistency. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- .../admin/server/perm-group-tree.component.html | 20 ++++++++++---------- .../staff/admin/server/perm-group-tree.component.ts | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html index 8a68159a9c..6e1770abe3 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html @@ -11,7 +11,7 @@ - + @@ -46,7 +46,7 @@
- +
@@ -146,24 +146,24 @@
+ [ngClass]="{'bg-warning': map.isdeleted()}">
{{map.perm().code()}}
{{map.depth()}}
-
-
+
-
+
Inherited
{{map.grp().name()}}
@@ -174,7 +174,7 @@
-
+
-
+
{ + this.loadProgress.increment(); this.permissions.push(perm); this.permEntries.push({id: perm.code(), label: perm.code()}); this.permissions.forEach(p => this.permIdMap[+p.id()] = p); @@ -138,7 +145,10 @@ export class PermGroupTreeComponent implements OnInit { this.permMaps = []; return this.pcrud.retrieveAll('pgpm', {}, {fleshSelectors: true, authoritative: true}) - .pipe(map((m => this.permMaps.push(m)))).toPromise(); + .pipe(map(m => { + this.loadProgress.increment(); + this.permMaps.push(m); + })).toPromise(); } fmEditorOptions(): {[fieldName: string]: FmFieldOptions} { -- 2.11.0