This commit is contained in:
Constantin Simonis 2024-12-18 14:00:43 +01:00
parent e1a8c1d3bd
commit 78b42a7d2e
Signed by: csimonis
GPG Key ID: 758DD9C506603183

View File

@ -26,8 +26,7 @@ import EmployeeApiService from "../services/employee-api.service";
export class DeleteEmployeeComponent { export class DeleteEmployeeComponent {
private apiService: EmployeeApiService = inject(EmployeeApiService); private apiService: EmployeeApiService = inject(EmployeeApiService);
constructor(@Inject(MAT_DIALOG_DATA) protected employee: Employee) { protected employee: Employee = inject(MAT_DIALOG_DATA);
}
deleteEmployee(id: number) { deleteEmployee(id: number) {
this.apiService.deleteById(id).subscribe(); this.apiService.deleteById(id).subscribe();