From ae30dbc241436121f1056bdfce85cc8bbc24ee68 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 25 Mar 2019 20:57:57 +0000 Subject: [PATCH] LP1821382 Angular lint repairs Signed-off-by: Bill Erickson Signed-off-by: Dan Wells --- .../eg2/src/app/share/util/bool.component.ts | 3 ++- .../catalog/record/holdings.component.ts | 26 +++++++++---------- .../holdings/copy-alerts-dialog.component.ts | 6 ++--- .../delete-volcopy-dialog.component.ts | 8 +++--- .../replace-barcode-dialog.component.ts | 4 +-- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/util/bool.component.ts b/Open-ILS/src/eg2/src/app/share/util/bool.component.ts index 37d2e8d7d7..2c7ec971f0 100644 --- a/Open-ILS/src/eg2/src/app/share/util/bool.component.ts +++ b/Open-ILS/src/eg2/src/app/share/util/bool.component.ts @@ -36,4 +36,5 @@ export class BoolDisplayComponent { constructor() { this.value = null; } -} \ No newline at end of file +} + diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts index 623b547542..fea6385403 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts @@ -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[]) { diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts index e0ce7637b0..630126b238 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts @@ -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)) - ) + ); } } diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts index 82bb82791e..57c613db06 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts @@ -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++; } ); diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts index 552922e9a0..2cd67de8d1 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts @@ -102,8 +102,8 @@ export class ReplaceBarcodeDialogComponent console.error('Replace barcode failed: ', err); this.toast.warning(await this.errorMsg.current()); } - ) - }) + ); + }); } } -- 2.43.2