From 1ea335444f51591e348e7f74ad2b4e9ed5ecfb75 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Mon, 9 Sep 2019 08:02:53 -0700 Subject: [PATCH] LP1816475: Return reservations screen refreshes properly Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/booking/reservations-grid.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts index a8c544309f..05fe1046ec 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts @@ -19,6 +19,8 @@ import {CancelReservationDialogComponent} from './cancel-reservation-dialog.comp import * as Moment from 'moment-timezone'; +// A filterable grid of reservations used in various booking interfaces + @Component({ selector: 'eg-reservations-grid', templateUrl: './reservations-grid.component.html', @@ -34,6 +36,7 @@ export class ReservationsGridComponent implements OnInit { @Input() onlyCaptured = false; @Output() onPickup = new EventEmitter(); + @Output() onReturn = new EventEmitter(); gridSource: GridDataSource; patronBarcode: string; @@ -237,7 +240,10 @@ export class ReservationsGridComponent implements OnInit { this.auth.token(), {'patron_barcode': this.patronBarcode, 'reservation': reservation}) .pipe(tap( - () => { this.grid.reload(); }, + () => { + this.onReturn.emit(reservation); + this.grid.reload(); + }, )); }; -- 2.11.0