From ead545739f98db890ed208360b3a43e99f978825 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Fri, 13 Sep 2019 11:04:27 -0700 Subject: [PATCH] LP1816475: Fix resource type filter in manage reservations grid Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../app/staff/booking/manage-reservations.component.html | 2 +- .../src/app/staff/booking/reservations-grid.component.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html index 82cd431e21..1a7e94b8da 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html +++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.html @@ -49,7 +49,7 @@ - filter_list Filter by resource type + filter_list Filter by resource type
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 1ec400e446..f098e799d5 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 @@ -1,4 +1,4 @@ -import {Component, EventEmitter, Input, Output, OnInit, ViewChild} from '@angular/core'; +import {Component, EventEmitter, Input, Output, OnChanges, OnInit, ViewChild} from '@angular/core'; import {Router} from '@angular/router'; import {Observable, from, of} from 'rxjs'; import {tap, switchMap, mergeMap} from 'rxjs/operators'; @@ -25,7 +25,7 @@ import * as Moment from 'moment-timezone'; selector: 'eg-reservations-grid', templateUrl: './reservations-grid.component.html', }) -export class ReservationsGridComponent implements OnInit { +export class ReservationsGridComponent implements OnChanges, OnInit { @Input() patron: number; @Input() resourceBarcode: string; @@ -276,6 +276,8 @@ export class ReservationsGridComponent implements OnInit { }; } + ngOnChanges() { this.reloadGrid(); } + enrichRow$ = (row: IdlObject): Observable => { return from(this.org.settings('lib.timezone', row.pickup_lib().id())).pipe( switchMap((tz) => { -- 2.43.2