LP1821382 Angular lint repairs
authorBill Erickson <berickxx@gmail.com>
Mon, 25 Mar 2019 20:57:57 +0000 (20:57 +0000)
committerDan Wells <dbw2@calvin.edu>
Wed, 29 May 2019 19:30:50 +0000 (15:30 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>

Open-ILS/src/eg2/src/app/share/util/bool.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts

index 37d2e8d..2c7ec97 100644 (file)
@@ -36,4 +36,5 @@ export class BoolDisplayComponent {
     constructor() {
         this.value = null;
     }
-}
\ No newline at end of file
+}
+
index 623b547..fea6385 100644 (file)
@@ -166,7 +166,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                 return 'holdings-org-row holdings-org-row-' +
                     row.treeNode.target.ou_type().depth();
             }
-        }
+        };
 
         this.gridTemplateContext = {
             toggleExpandRow: (row: HoldingsEntry) => {
@@ -178,7 +178,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                     const traverse = (node: HoldingsTreeNode) => {
                         node.expanded = false;
                         node.children.forEach(traverse);
-                    }
+                    };
                     traverse(row.treeNode);
                 }
 
@@ -190,7 +190,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                     && copy.location().holdable() === 't'
                     && copy.status().holdable() === 't';
             }
-        }
+        };
     }
 
     ngOnInit() {
@@ -282,7 +282,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
         // The initial tree simply matches the org unit tree
         const traverseOrg = (node: HoldingsTreeNode) => {
             node.target.children().forEach((org: IdlObject) => {
-                if (visibleOrgs.indexOf(org.id()) == -1) {
+                if (visibleOrgs.indexOf(org.id()) === -1) {
                     return; // Org is outside of scope
                 }
                 const nodeChild = new HoldingsTreeNode();
@@ -293,7 +293,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                 this.treeNodeCache.org[org.id()] = nodeChild;
                 traverseOrg(nodeChild);
             });
-        }
+        };
 
         this.treeNodeCache = {
             org: {},
@@ -336,7 +336,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
         if (node.nodeType === 'org') {
             node.copyCount = 0;
             node.volumeCount = 0;
-        } else if(node.nodeType === 'volume') {
+        } else if (node.nodeType === 'volume') {
             node.copyCount = 0;
         }
 
@@ -383,7 +383,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
         entry.treeNode = node;
         entry.index = this.gridIndex++;
 
-        switch(node.nodeType) {
+        switch (node.nodeType) {
             case 'org':
                 if (node.volumeCount === 0
                     && !this.emptyLibsCheckbox.checked()) {
@@ -416,7 +416,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
             case 'copy':
                 entry.locationLabel = node.target.barcode();
                 entry.locationDepth = node.parentNode.parentNode.target.ou_type().depth() + 2;
-                entry.callNumberLabel = node.parentNode.target.label() // TODO
+                entry.callNumberLabel = node.parentNode.target.label(); // TODO
                 entry.volume = node.parentNode.target;
                 entry.copy = node.target;
                 entry.circ = node.target._circ;
@@ -514,7 +514,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
         this.setVolumeLabel(volume);
 
         if (volNode) {
-            const pNode = this.treeNodeCache.org[volume.owning_lib()]
+            const pNode = this.treeNodeCache.org[volume.owning_lib()];
             if (volNode.parentNode.target.id() !== pNode.target.id()) {
                 // Volume owning library changed.  Un-link it from the previous
                 // org unit collection before adding to the new one.
@@ -525,7 +525,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
         } else {
             volNode = new HoldingsTreeNode();
             volNode.nodeType = 'volume';
-            volNode.parentNode = this.treeNodeCache.org[volume.owning_lib()]
+            volNode.parentNode = this.treeNodeCache.org[volume.owning_lib()];
             volNode.parentNode.children.push(volNode);
             this.treeNodeCache.volume[volume.id()] = volNode;
         }
@@ -657,7 +657,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
 
             // Add volume target when performed on a volume row.
             this.localStore.setLocalItem(
-                'eg.cat.transfer_target_vol', node.target.id())
+                'eg.cat.transfer_target_vol', node.target.id());
         }
 
         this.localStore.setLocalItem('eg.cat.transfer_target_record', this.recordId);
@@ -736,7 +736,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                 } else {
 
                 // Otherwise create new volumes from scratch.
-                entries.push({owner: this.auth.user().ws_ou()})
+                entries.push({owner: this.auth.user().ws_ou()});
             }
 
             this.holdings.spawnAddHoldingsUi(
@@ -757,7 +757,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
                 }
             },
             dismissed => {}
-        )
+        );
     }
 
     openReplaceBarcodeDialog(rows: HoldingsEntry[]) {
index e0ce763..630126b 100644 (file)
@@ -168,18 +168,18 @@ export class CopyAlertsDialogComponent
                 }
             },
             err => {
-                this.errorMsg.current().then(msg => this.toast.danger(msg))
+                this.errorMsg.current().then(msg => this.toast.danger(msg));
             }
         );
     }
 
     applyChanges() {
         const alerts = this.copy.copy_alerts().filter(a => a.ischanged());
-        if (alerts.length === 0) { return ;}
+        if (alerts.length === 0) { return; }
         this.pcrud.update(alerts).toPromise().then(
             ok => this.successMsg.current().then(msg => this.toast.success(msg)),
             err => this.errorMsg.current().then(msg => this.toast.danger(msg))
-        )
+        );
     }
 }
 
index 82bb827..57c613d 100644 (file)
@@ -73,10 +73,10 @@ export class DeleteVolcopyDialogComponent
                         // Marking copies deleted in forceDeleteCopies mode
                         // is not required, but we do it here so we can
                         // report the number of copies to be deleted.
-                        c.isdeleted(true)
+                        c.isdeleted(true);
                         this.numCopies++;
                     }
-                })
+                });
             }
         });
 
@@ -103,7 +103,7 @@ export class DeleteVolcopyDialogComponent
                 const evt = this.evt.parse(result);
                 if (evt) {
                     console.warn(evt);
-                    this.errorMsg.current().then(msg =>this.toast.warning(msg));
+                    this.errorMsg.current().then(msg => this.toast.warning(msg));
                     this.numFailed++;
                 } else {
                     this.numSucceeded++;
@@ -112,7 +112,7 @@ export class DeleteVolcopyDialogComponent
             },
             err => {
                 console.warn(err);
-                this.errorMsg.current().then(msg =>this.toast.warning(msg));
+                this.errorMsg.current().then(msg => this.toast.warning(msg));
                 this.numFailed++;
             }
         );
index 552922e..2cd67de 100644 (file)
@@ -102,8 +102,8 @@ export class ReplaceBarcodeDialogComponent
                     console.error('Replace barcode failed: ', err);
                     this.toast.warning(await this.errorMsg.current());
                 }
-            )
-        })
+            );
+        });
     }
 }