build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
-2
@@ -13,7 +13,6 @@ import { AccountingService } from '../../accounting.service';
|
||||
*/
|
||||
@Injectable()
|
||||
export class FinancialActivityMappingResolver implements Resolve<Object> {
|
||||
|
||||
/**
|
||||
* @param {AccountingService} accountingService Accounting service.
|
||||
*/
|
||||
@@ -27,5 +26,4 @@ export class FinancialActivityMappingResolver implements Resolve<Object> {
|
||||
const financialActivityAccountId = route.paramMap.get('id');
|
||||
return this.accountingService.getFinancialActivityAccount(financialActivityAccountId, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-3
@@ -8,9 +8,8 @@ describe('ViewFinancialActivityMappingComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ViewFinancialActivityMappingComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [ViewFinancialActivityMappingComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
+10
-11
@@ -19,7 +19,6 @@ import { Location } from '@angular/common';
|
||||
styleUrls: ['./view-financial-activity-mapping.component.scss']
|
||||
})
|
||||
export class ViewFinancialActivityMappingComponent {
|
||||
|
||||
/** Financial activity account ID. */
|
||||
financialActivityAccountId: any;
|
||||
/** Financial activity account data. */
|
||||
@@ -32,11 +31,13 @@ export class ViewFinancialActivityMappingComponent {
|
||||
* @param {Router} router Router for navigation.
|
||||
* @param {MatDialog} dialog Dialog reference.
|
||||
*/
|
||||
constructor(private accountingService: AccountingService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private location: Location) {
|
||||
constructor(
|
||||
private accountingService: AccountingService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private location: Location
|
||||
) {
|
||||
this.route.data.subscribe((data: { financialActivityAccount: any }) => {
|
||||
this.financialActivityAccount = data.financialActivityAccount;
|
||||
this.financialActivityAccountId = data.financialActivityAccount.id;
|
||||
@@ -52,10 +53,9 @@ export class ViewFinancialActivityMappingComponent {
|
||||
});
|
||||
deleteFinancialActivityAccountDialogRef.afterClosed().subscribe((response: any) => {
|
||||
if (response.delete) {
|
||||
this.accountingService.deleteFinancialActivityAccount(this.financialActivityAccountId)
|
||||
.subscribe(() => {
|
||||
this.router.navigate(['/accounting/financial-activity-mappings']);
|
||||
});
|
||||
this.accountingService.deleteFinancialActivityAccount(this.financialActivityAccountId).subscribe(() => {
|
||||
this.router.navigate(['/accounting/financial-activity-mappings']);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -63,5 +63,4 @@ export class ViewFinancialActivityMappingComponent {
|
||||
goBack(): void {
|
||||
this.location.back();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user