From: Jane Sandberg Date: Thu, 7 May 2020 03:32:29 +0000 (-0700) Subject: LP1877187: get rid of the this.reloadGrid console error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fcollab%2Fsandbergja%2Flp1877187_manage_reservations_grid_issues;p=working%2FEvergreen.git LP1877187: get rid of the this.reloadGrid console error Signed-off-by: Jane Sandberg --- 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'];