LP1877187: get rid of the this.reloadGrid console error collab/sandbergja/lp1877187_manage_reservations_grid_issues
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 7 May 2020 03:32:29 +0000 (20:32 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Thu, 7 May 2020 03:32:29 +0000 (20:32 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts

index 4e75a61..108305a 100644 (file)
@@ -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'];