1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Fix console contact delete button not working (#2528)

This commit is contained in:
Pavlo Tkach
2024-08-09 12:42:39 -04:00
committed by GitHub
parent 2d1260c01b
commit d0d28cc7e6
2 changed files with 8 additions and 1 deletions

View File

@@ -18,7 +18,11 @@
<mat-icon>edit</mat-icon>
Edit
</button>
<button mat-icon-button aria-label="Delete Contact">
<button
mat-icon-button
aria-label="Delete Contact"
(click)="deleteContact()"
>
<mat-icon>delete</mat-icon>
</button>
}

View File

@@ -50,6 +50,9 @@ export class ContactDetailsComponent {
error: (err: HttpErrorResponse) => {
this._snackBar.open(err.error);
},
complete: () => {
this.goBack();
},
});
}
}