LP#1908763: (follow-up) clean up ng lint warnings
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Mar 2021 15:44:11 +0000 (10:44 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Mar 2021 15:44:11 +0000 (10:44 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts

index 7bec134..c51af57 100644 (file)
@@ -31,7 +31,7 @@ export class SurveyComponent implements OnInit {
     @ViewChild('endSurveySuccessString', { static: true }) endSurveySuccessString: StringComponent;
 
     @Input() sortField: string;
     @ViewChild('endSurveySuccessString', { static: true }) endSurveySuccessString: StringComponent;
 
     @Input() sortField: string;
-    @Input() idlClass='asv';
+    @Input() idlClass = 'asv';
     @Input() dialogSize: 'sm' | 'lg' = 'lg';
 
     constructor(
     @Input() dialogSize: 'sm' | 'lg' = 'lg';
 
     constructor(
@@ -46,20 +46,20 @@ export class SurveyComponent implements OnInit {
 
     ngOnInit() {
         this.gridDataSource.getRows = (pager: Pager, sort: any[]) => {
 
     ngOnInit() {
         this.gridDataSource.getRows = (pager: Pager, sort: any[]) => {
-           const orderBy: any = {};
-           if (sort.length) {
-               // Sort specified from grid
-               orderBy[this.idlClass] = sort[0].name + ' ' + sort[0].dir;
-           } else if (this.sortField) {
-               // Default sort field
-               orderBy[this.idlClass] = this.sortField;
-           }
+            const orderBy: any = {};
+            if (sort.length) {
+                // Sort specified from grid
+                orderBy[this.idlClass] = sort[0].name + ' ' + sort[0].dir;
+            } else if (this.sortField) {
+                // Default sort field
+                orderBy[this.idlClass] = this.sortField;
+            }
 
 
-           const searchOps = {
-               offset: pager.offset,
-               limit: pager.limit,
-               order_by: orderBy
-           };
+            const searchOps = {
+                offset: pager.offset,
+                limit: pager.limit,
+                order_by: orderBy
+            };
             return this.pcrud.retrieveAll('asv', searchOps, {});
         };
 
             return this.pcrud.retrieveAll('asv', searchOps, {});
         };