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
@@ -18,7 +18,6 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
styleUrls: ['./view-template.component.scss']
})
export class ViewTemplateComponent {
/** Template Data */
templateData: any;
@@ -29,10 +28,12 @@ export class ViewTemplateComponent {
* @param {Router} router Router for navigation.
* @param {MatDialog} dialog Dialog reference.
*/
constructor(private route: ActivatedRoute,
private templatesService: TemplatesService,
private router: Router,
private dialog: MatDialog) {
constructor(
private route: ActivatedRoute,
private templatesService: TemplatesService,
private router: Router,
private dialog: MatDialog
) {
this.route.data.subscribe((data: { template: any }) => {
this.templateData = data.template;
});
@@ -47,12 +48,10 @@ export class ViewTemplateComponent {
});
deleteTemplateDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
this.templatesService.deleteTemplate(this.templateData.id)
.subscribe(() => {
this.router.navigate(['/templates']);
});
this.templatesService.deleteTemplate(this.templateData.id).subscribe(() => {
this.router.navigate(['/templates']);
});
}
});
}
}