LP2016337 Refresh grids in booking return tabs
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 14 Apr 2023 21:28:15 +0000 (21:28 +0000)
committerJane Sandberg <js7389@princeton.edu>
Sun, 16 Apr 2023 16:11:35 +0000 (09:11 -0700)
Loads missing tab contents in booking return by patron screens.

Co-authored-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/booking/return.component.ts

index fad7764..a986825 100644 (file)
@@ -88,6 +88,7 @@ export class ReturnComponent implements OnInit, OnDestroy {
                             select: {'curr_rsrcs': {'return_time': null, 'pickup_time': {'!=': null}}}
                         }).pipe(tap((resp) => {
                             if (resp.curr_rsrcs()[0].usr()) {
+                                this.tabs.select('resource');
                                 this.patronId = resp.curr_rsrcs()[0].usr();
                                 this.refreshGrids();
                             }
@@ -121,6 +122,7 @@ export class ReturnComponent implements OnInit, OnDestroy {
               flesh_fields: {'au': ['card']}
           }).pipe(tap(
               (resp) => {
+                  this.tabs.select('patron_tab');
                   this.findPatron.patchValue({patronBarcode: resp.card().barcode()});
                   this.refreshGrids();
               }, (err) => { console.debug(err); }