From 377158f2569e4987941c0e4a5f6958d3c247f1e3 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 14 Apr 2023 21:28:15 +0000 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/staff/booking/return.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.11.0