From aec742bdfb07369368e5598a0f46115d704cce2c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 12 Aug 2019 17:30:29 -0400 Subject: [PATCH] LPXXX org unit admin UI WIP Signed-off-by: Bill Erickson --- .../app/staff/admin/server/org-unit.component.html | 25 +++++++++++----------- .../app/staff/admin/server/org-unit.component.ts | 7 ------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html index 2efa59a6e8..a1ef44a3c8 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/server/org-unit.component.html @@ -13,7 +13,7 @@ + dialogBody="Delete Org Unit {{selected.label}}?">
@@ -22,16 +22,17 @@
-

Selected Org Unit

- -
- Select an org unit type from the tree on the left. -
-
- - + + + + + + + +
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 2dde40c425..65b21d0cb1 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 @@ -37,7 +37,6 @@ export class OrgUnitComponent implements OnInit { // select the root node. this.ingestAouTree(this.org.tree()); this.selected = this.tree.rootNode; - this.editDialog.setRecord(this.selected.callerData.orgUnit); } loadAouTree() { @@ -73,7 +72,6 @@ export class OrgUnitComponent implements OnInit { nodeClicked($event: any) { this.selected = $event; - this.editDialog.setRecord(this.selected.callerData.orgUnit); } postUpdate(message: StringComponent) { @@ -105,8 +103,6 @@ export class OrgUnitComponent implements OnInit { // otherwise the root org. const orgId = org.parent_ou() ? org.parent_ou() : this.org.root().id(); this.selected = this.tree.findNode(orgId); - this.editDialog.setRecord(this.selected.callerData.orgUnit); - this.postUpdate(this.editString); } ); @@ -120,9 +116,6 @@ export class OrgUnitComponent implements OnInit { const newOrg = this.idl.create('aou'); newOrg.parent(parentOrg.id()); - this.editDialog.setRecord(newOrg); - this.editDialog.mode = 'create'; - // TODO UNSUBSCRIBE this.editDialog.onSave$.subscribe(result => { // aou object -- 2.11.0