currencies: fix lint
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 29 Mar 2021 15:48:03 +0000 (11:48 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 29 Mar 2021 15:48:03 +0000 (11:48 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/currency/currencies.component.ts
Open-ILS/src/eg2/src/app/staff/admin/acq/currency/exchange-rates-dialog.component.ts

index 72d3e4e..6baba65 100644 (file)
@@ -115,7 +115,7 @@ export class CurrenciesComponent extends AdminPageComponent implements OnInit {
     deleteIfPossible(rows: IdlObject[]) {
         if (rows.length > 0) {
             const code = rows[0].code();
-            let can: boolean = true;
+            let can = true;
             forkJoin([
                 this.pcrud.search('acqexr',  { from_currency: code }, { limit: 1 }, { atomic: true }),
                 this.pcrud.search('acqexr',  { to_currency: code },   { limit: 1 }, { atomic: true }),
index 2b5c77c..4490c0b 100644 (file)
@@ -24,17 +24,17 @@ export class ExchangeRatesDialogComponent
     @Input() currencyCode: string;
     currency: IdlObject;
     otherCurrencies: IdlObject[];
-    existingRatios: {[toCurrency: string]: IdlObject} = {}
-    existingInverseRatios: {[fromCurrency: string]: IdlObject} = {}
+    existingRatios: {[toCurrency: string]: IdlObject} = {};
+    existingInverseRatios: {[fromCurrency: string]: IdlObject} = {};
     ratios: IdlObject[];
     idlDef: any;
     fieldOrder: any;
-    canUpdate: boolean = false;
-    doneLoading: boolean = false;
+    canUpdate = false;
+    doneLoading = false;
 
     @ViewChild('successString', { static: true }) successString: StringComponent;
     @ViewChild('updateFailedString', { static: false }) updateFailedString: StringComponent;
+
     constructor(
         private idl: IdlService,
         private evt: EventService,
@@ -47,7 +47,7 @@ export class ExchangeRatesDialogComponent
     ) {
         super(modal);
     }
-    
+
     ngOnInit() {
         this.currency = null;
         this.onOpen$.subscribe(() => this._initRecord());
@@ -102,7 +102,7 @@ export class ExchangeRatesDialogComponent
                 const toCur = ratio.to_currency();
                 ratio.to_currency(ratio.from_currency());
                 ratio.from_currency(toCur);
-                ratio.ratio(1.0/ratio.ratio());
+                ratio.ratio(1.0 / ratio.ratio());
                 this.ratios.push(ratio);
             } else {
                 const ratio = this.idl.create('acqexr');