From 99bb8ab77114c5e2b47f76c43613ff714f8ae230 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Fri, 17 Feb 2023 13:11:48 +0100 Subject: [PATCH] fix(console): check for initial state in contact component (#5142) fix: check for initial state Co-authored-by: Livio Spring --- .../user-detail/user-detail/user-detail.component.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html b/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html index 3752bb00f3..91919c18ad 100644 --- a/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html +++ b/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html @@ -113,7 +113,11 @@ [canWrite]="['user.write:' + user.id, 'user.write$'] | hasRole | async" *ngIf="user?.human" [human]="user.human" - (editType)="user.state !== UserState.USER_STATE_INITIAL ? openEditDialog($event) : resendInitEmail()" + (editType)=" + user.state === UserState.USER_STATE_INITIAL && $event === EditDialogType.EMAIL + ? resendInitEmail() + : openEditDialog($event) + " (deletedPhone)="deletePhone()" (resendEmailVerification)="resendEmailVerification()" (resendPhoneVerification)="resendPhoneVerification()"