fix ng lint warnings
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 1 Nov 2019 17:57:01 +0000 (13:57 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Jan 2020 21:38:28 +0000 (16:38 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts
Open-ILS/src/eg2/src/app/staff/acq/search/invoice-results.component.ts
Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.ts
Open-ILS/src/eg2/src/app/staff/acq/search/picklist-results.component.ts
Open-ILS/src/eg2/src/app/staff/acq/search/purchase-order-results.component.ts

index dbe224c..e71e458 100644 (file)
@@ -9,29 +9,29 @@ import {Pager} from '@eg/share/util/pager';
 const defaultSearch = {
     lineitem: {
         jub: [{
-            id: "0",
+            id: '0',
             __gte: true
         }]
     },
     purchase_order: {
         acqpo: [{
-            id: "0",
+            id: '0',
             __gte: true
         }]
     },
     picklist: {
         acqpl: [{
-            id: "0",
+            id: '0',
             __gte: true
         }]
     },
     invoice: {
         acqinv: [{
-            id: "0",
+            id: '0',
             __gte: true
         }]
     },
-}
+};
 
 const searchOptions = {
     lineitem: {
@@ -64,10 +64,10 @@ export class AcqSearchService {
     }
 
     getAcqSearchDataSource(searchType: string): GridDataSource {
-        let gridSource = new GridDataSource();
+        const gridSource = new GridDataSource();
 
         gridSource.getRows = (pager: Pager) => {
-            let opts = { ...searchOptions[searchType] };
+            const opts = { ...searchOptions[searchType] };
             opts['offset'] = pager.offset;
             opts['limit'] = pager.limit;
             return this.net.request(
index d06c90d..9dbb627 100644 (file)
@@ -15,7 +15,7 @@ import {AcqSearchService} from './acq-search.service';
   templateUrl: 'invoice-results.component.html',
   providers: [AcqSearchService]
 })
-export class InvoiceResultsComponent {
+export class InvoiceResultsComponent implements OnInit {
 
     gridSource: GridDataSource;
     @ViewChild('acqSearchInvoicesGrid', { static: true }) invoiceResultsGrid: GridComponent;
index fa96b96..2e3104f 100644 (file)
@@ -15,7 +15,7 @@ import {AcqSearchService} from './acq-search.service';
   templateUrl: 'lineitem-results.component.html',
   providers: [AcqSearchService]
 })
-export class LineitemResultsComponent {
+export class LineitemResultsComponent implements OnInit {
 
     gridSource: GridDataSource;
     @ViewChild('acqSearchLineitemsGrid', { static: true }) lineitemResultsGrid: GridComponent;
index cfd2634..092a668 100644 (file)
@@ -15,7 +15,7 @@ import {AcqSearchService} from './acq-search.service';
   templateUrl: 'picklist-results.component.html',
   providers: [AcqSearchService]
 })
-export class PicklistResultsComponent {
+export class PicklistResultsComponent implements OnInit {
 
     gridSource: GridDataSource;
     @ViewChild('acqSearchPicklistsGrid', { static: true }) picklistResultsGrid: GridComponent;
index dcb1d24..3d688c6 100644 (file)
@@ -15,7 +15,7 @@ import {AcqSearchService} from './acq-search.service';
   templateUrl: 'purchase-order-results.component.html',
   providers: [AcqSearchService]
 })
-export class PurchaseOrderResultsComponent {
+export class PurchaseOrderResultsComponent implements OnInit {
 
     gridSource: GridDataSource;
     @ViewChild('acqSearchPurchaseOrdersGrid', { static: true }) purchaseOrderResultsGrid: GridComponent;