From: Jane Sandberg Date: Fri, 13 Sep 2019 18:04:27 +0000 (-0700) Subject: LP1816475: Fix resource type filter in manage reservations grid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1e6cb7a8714f5b37277d55085d72db90a5c1b86c;p=evergreen%2Fjoelewis.git LP1816475: Fix resource type filter in manage reservations grid Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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 40cf8f8005..4e75a61503 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) => {