build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
@@ -13,14 +13,15 @@ import { AuthenticationService } from '../../../core/authentication/authenticati
styleUrls: ['./notes-tab.component.scss']
})
export class NotesTabComponent {
entityId: string;
username: string;
entityNotes: any;
constructor(private route: ActivatedRoute,
constructor(
private route: ActivatedRoute,
private loansService: LoansService,
private authenticationService: AuthenticationService) {
private authenticationService: AuthenticationService
) {
const savedCredentials = this.authenticationService.getCredentials();
this.username = savedCredentials.username;
this.entityId = this.route.parent.snapshot.params['loanId'];
@@ -47,10 +48,8 @@ export class NotesTabComponent {
}
deleteNote(noteId: string, index: number) {
this.loansService.deleteLoanNote(this.entityId, noteId)
.subscribe(() => {
this.entityNotes.splice(index, 1);
this.loansService.deleteLoanNote(this.entityId, noteId).subscribe(() => {
this.entityNotes.splice(index, 1);
});
}
}