LP#1816475: (follow-up) fix lint issues
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 15:17:56 +0000 (11:17 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 15:17:56 +0000 (11:17 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts
Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts

index 7461a6c..6dcfe7c 100644 (file)
@@ -274,7 +274,7 @@ export class CreateReservationComponent implements OnInit, AfterViewInit, OnDest
         resources$.pipe(
             tap((resource) =>  {
                 this.resources.push(resource);
-                this.resources.sort((a,b) =>
+                this.resources.sort((a, b) =>
                     (a.barcode() > b.barcode()) ? 1 : ((b.barcode() > a.barcode()) ? -1 : 0));
             }),
             takeLast(1),
index 72b2d04..d4e3973 100644 (file)
@@ -288,7 +288,7 @@ export class ReservationsGridComponent implements OnInit {
                 ok => {
                     this.toast.success('Reservation successfully updated'); // TODO: needs i18n, pluralization
                     this.grid.reload();
-                    resolve(ok)
+                    resolve(ok);
                 },
                 rejection => {}
             );
index edde96c..d818474 100644 (file)
@@ -871,7 +871,9 @@ export class HoldingsMaintenanceComponent implements OnInit {
     bookItems(rows: HoldingsEntry[]) {
         const copyIds = this.selectedCopyIds(rows);
         if (copyIds.length > 0) {
-            this.router.navigate(['staff', 'booking', 'create_reservation', 'for_resource', rows.filter(r => Boolean(r.copy))[0].copy.barcode()]);
+            this.router.navigate(
+                ['staff', 'booking', 'create_reservation', 'for_resource', rows.filter(r => Boolean(r.copy))[0].copy.barcode()]
+            );
         }
     }
 
@@ -886,7 +888,9 @@ export class HoldingsMaintenanceComponent implements OnInit {
     manageReservations(rows: HoldingsEntry[]) {
         const copyIds = this.selectedCopyIds(rows);
         if (copyIds.length > 0) {
-            this.router.navigate(['staff', 'booking', 'manage_reservations', 'by_resource', rows.filter(r => Boolean(r.copy))[0].copy.barcode()]);
+            this.router.navigate(
+                ['staff', 'booking', 'manage_reservations', 'by_resource', rows.filter(r => Boolean(r.copy))[0].copy.barcode()]
+            );
         }
     }
 }