From: Stephanie Leary Date: Fri, 14 Apr 2023 21:28:15 +0000 (+0000) Subject: LP2016337 Refresh grids in booking return tabs X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=377158f2569e4987941c0e4a5f6958d3c247f1e3 LP2016337 Refresh grids in booking return tabs Loads missing tab contents in booking return by patron screens. Co-authored-by: Galen Charlton Signed-off-by: Stephanie Leary Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/return.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/return.component.ts index fad7764..a986825 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/return.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/return.component.ts @@ -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); }