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',
@Input() onlyCaptured = false;
@Output() onPickup = new EventEmitter<IdlObject>();
+ @Output() onReturn = new EventEmitter<IdlObject>();
gridSource: GridDataSource;
patronBarcode: string;
this.auth.token(),
{'patron_barcode': this.patronBarcode, 'reservation': reservation})
.pipe(tap(
- () => { this.grid.reload(); },
+ () => {
+ this.onReturn.emit(reservation);
+ this.grid.reload();
+ },
));
};