[open-ils-commits] [GIT] Evergreen ILS branch rel_3_4 updated. 58eb7cf5c52ebfb0330bf4a24897ca76fc03583b

Evergreen Git git at git.evergreen-ils.org
Tue Feb 18 11:12:08 EST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_4 has been updated
       via  58eb7cf5c52ebfb0330bf4a24897ca76fc03583b (commit)
      from  6be29889ff5acde7854174232bf617dc4f53196e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 58eb7cf5c52ebfb0330bf4a24897ca76fc03583b
Author: Bill Erickson <berickxx at gmail.com>
Date:   Wed Jan 22 10:10:20 2020 -0500

    LP1860468 Org unit admin interface sorting
    
    Sort org units by name alphabetically in the Angular Org Unit admin
    interface navigation tree.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Lynn Floyd <lfloyd1 at library.in.gov>

diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.ts
index 714d7b7e51..a5af71702c 100644
--- a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.ts
@@ -96,7 +96,12 @@ export class OrgUnitComponent implements OnInit {
                 'admin.server.org_unit.treenode', {org: orgNode}
             ).then(label => treeNode.label = label);
 
-            orgNode.children().forEach(childNode =>
+            // Tree node labels are "name -- shortname".  Sorting
+            // by name suffices and bypasses the need the wait
+            // for all of the labels to interpolate.
+            orgNode.children()
+            .sort((a, b) => a.name() < b.name() ? -1 : 1)
+            .forEach(childNode =>
                 treeNode.children.push(handleNode(childNode))
             );
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.ts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list