From: Stephanie Leary Date: Fri, 14 Apr 2023 21:28:15 +0000 (+0000) Subject: LP2016337 Refresh grids in booking return tabs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fsleary%2F2016337-disappearing-booking-grid;p=working%2FEvergreen.git LP2016337 Refresh grids in booking return tabs Loads missing tab contents in booking return by patron screens. Signed-off-by: Stephanie Leary --- 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 fad7764b4d..a986825e1d 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); }