fix(console): check for initial state in contact component (#5142)

fix: check for initial state

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Max Peintner 2023-02-17 13:11:48 +01:00 committed by GitHub
parent fa1e6c0bb2
commit 99bb8ab771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()"