LP1840050 org unit admin UI WIP
authorBill Erickson <berickxx@gmail.com>
Fri, 16 Aug 2019 20:01:54 +0000 (16:01 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 16 Aug 2019 20:01:54 +0000 (16:01 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
Open-ILS/src/eg2/src/app/staff/admin/server/org-addr.component.ts
Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts

index 9e7dc25..7edfdf4 100644 (file)
@@ -72,7 +72,7 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit {
     // Allow the selected entry ID to be passed via the template
     // This does NOT not emit onChange events.
     @Input() set selectedId(id: any) {
-        if (id) { 
+        if (id) {
             if (this.entrylist.length) {
                 this.selected = this.entrylist.filter(e => e.id === id)[0];
             }
index 3b4a498..c6ddc3c 100644 (file)
@@ -8,7 +8,7 @@ const ADDR_TYPES =
     ['billing_address', 'holds_address', 'mailing_address', 'ill_address'];
 
 @Component({
-    selector: 'eg-admin-org-address', 
+    selector: 'eg-admin-org-address',
     templateUrl: './org-addr.component.html'
 })
 export class OrgAddressComponent {
@@ -46,7 +46,7 @@ export class OrgAddressComponent {
         if (!this.orgId) { return; }
 
         return this.pcrud.retrieve('aou', this.orgId,
-            {flesh : 1, flesh_fields : {aou : ADDR_TYPES}}, 
+            {flesh : 1, flesh_fields : {aou : ADDR_TYPES}},
             {authoritative: true}
         ).subscribe(org => {
             this.orgUnit = org;
@@ -84,7 +84,7 @@ export class OrgAddressComponent {
         // Find the address
         let fromAddr: IdlObject;
         ADDR_TYPES.forEach(aType => {
-            if (aType !== addrType && 
+            if (aType !== addrType &&
                 this.addr(aType).id() === this.addr(addrType).id()) {
                 fromAddr = this.addr(aType);
             }
index 60bf2c9..3c07655 100644 (file)
@@ -11,7 +11,7 @@ const routes: Routes = [{
 }, {
     path: 'actor/org_unit_type',
     component: OrgUnitTypeComponent
-}, { 
+}, {
     path: 'actor/org_unit',
     loadChildren: '@eg/staff/admin/server/org-unit.module#OrgUnitModule'
 }, {