From 75f7c0a0875d427f7c88409534aa733fe51dc08d Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 6 May 2020 20:32:29 -0700 Subject: [PATCH] LP1877187: get rid of the this.reloadGrid console error Signed-off-by: Jane Sandberg --- .../src/eg2/src/app/staff/booking/reservations-grid.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 4e75a61503..108305a5dc 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 @@ -63,8 +63,6 @@ export class ReservationsGridComponent implements OnChanges, OnInit { handleRowActivate: (row: IdlObject) => void; redirectToCreate: () => void; - reloadGrid: () => void; - noSelectedRows: (rows: IdlObject[]) => boolean; notOnePatronSelected: (rows: IdlObject[]) => boolean; notOneResourceSelected: (rows: IdlObject[]) => boolean; @@ -200,8 +198,6 @@ export class ReservationsGridComponent implements OnChanges, OnInit { return false; }; - this.reloadGrid = () => { this.grid.reload(); }; - this.pickupSelected = (reservations: IdlObject[]) => { const pickupOne = (thing: IdlObject) => { if (!thing) { return; } @@ -288,6 +284,9 @@ export class ReservationsGridComponent implements OnChanges, OnInit { ); } + reloadGrid() { this.grid.reload(); } + + showEditDialog(idlThing: IdlObject) { this.editDialog.recordId = idlThing.id(); this.editDialog.timezone = idlThing['timezone']; -- 2.11.0