stop page reload after employee deletion (#25)
Reviewed-on: #25 Reviewed-by: Get in my car i have candy <huydw@proton.me> Co-authored-by: Constantin Simonis <constantin@simonis.lol> Co-committed-by: Constantin Simonis <constantin@simonis.lol>
This commit is contained in:
committed by
Get in my car i have candy

parent
294191d24e
commit
b0009229d1
@ -73,7 +73,11 @@ export class TableComponent implements OnInit{
|
||||
}
|
||||
|
||||
protected openDeleteDialogue(employee: Employee): void {
|
||||
this.deleteDialogue.open(DeleteComponent, {data: employee});
|
||||
this.deleteDialogue.open(DeleteComponent, {data: employee})
|
||||
.afterClosed()
|
||||
.subscribe(() => {
|
||||
this.employees$ = this.fetchEmployees();
|
||||
});
|
||||
}
|
||||
|
||||
protected showCreateEmployeeModal() {
|
||||
|
Reference in New Issue
Block a user