From: Jane Sandberg Date: Mon, 9 Sep 2019 15:02:53 +0000 (-0700) Subject: LP1816475: Return reservations screen refreshes properly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1ea335444f51591e348e7f74ad2b4e9ed5ecfb75;p=evergreen%2Fequinox.git LP1816475: Return reservations screen refreshes properly Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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(); + }, )); };