From 2b0acd70061a07a4091869a46c0ef2c8839f8165 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 6 Sep 2019 11:17:56 -0400 Subject: [PATCH] LP#1816475: (follow-up) fix lint issues Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/booking/create-reservation.component.ts | 2 +- .../src/eg2/src/app/staff/booking/reservations-grid.component.ts | 2 +- .../src/eg2/src/app/staff/catalog/record/holdings.component.ts | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts index 7461a6cfcb..6dcfe7c683 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation.component.ts @@ -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), 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 72b2d0458e..d4e39735b2 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 @@ -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 => {} ); diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts index edde96cbc5..d818474d25 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts @@ -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()] + ); } } } -- 2.11.0