mirror of
https://github.com/google/nomulus
synced 2025-12-23 14:25:44 +00:00
Fix console contact delete button not working (#2528)
This commit is contained in:
@@ -18,7 +18,11 @@
|
|||||||
<mat-icon>edit</mat-icon>
|
<mat-icon>edit</mat-icon>
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button aria-label="Delete Contact">
|
<button
|
||||||
|
mat-icon-button
|
||||||
|
aria-label="Delete Contact"
|
||||||
|
(click)="deleteContact()"
|
||||||
|
>
|
||||||
<mat-icon>delete</mat-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ export class ContactDetailsComponent {
|
|||||||
error: (err: HttpErrorResponse) => {
|
error: (err: HttpErrorResponse) => {
|
||||||
this._snackBar.open(err.error);
|
this._snackBar.open(err.error);
|
||||||
},
|
},
|
||||||
|
complete: () => {
|
||||||
|
this.goBack();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user