LP1845240 Survey editor ng lint repairs user/berick/lp1845240-lint-repairs
authorBill Erickson <berickxx@gmail.com>
Wed, 17 Feb 2021 15:15:40 +0000 (10:15 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 17 Feb 2021 15:15:47 +0000 (10:15 -0500)
Replace some tabs, improve resulting formatting, and add some spaces.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/local/survey/survey.component.ts

index 7bec134..8e40e9a 100644 (file)
@@ -31,7 +31,7 @@ export class SurveyComponent implements OnInit {
     @ViewChild('endSurveySuccessString', { static: true }) endSurveySuccessString: StringComponent;
 
     @Input() sortField: string;
-    @Input() idlClass='asv';
+    @Input() idlClass = 'asv';
     @Input() dialogSize: 'sm' | 'lg' = 'lg';
 
     constructor(
@@ -46,20 +46,21 @@ export class SurveyComponent implements OnInit {
 
     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 searchOps = {
-               offset: pager.offset,
-               limit: pager.limit,
-               order_by: orderBy
-           };
+            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
+            };
+
             return this.pcrud.retrieveAll('asv', searchOps, {});
         };