fix(console): edit email for initial users (#4776)

fix: edit email for initial users

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2022-12-14 14:02:59 +00:00
committed by GitHub
co-authored by Livio Spring
parent c336d6fd3f
commit fc672c9adc
2 changed files with 2 additions and 2 deletions
@@ -24,7 +24,7 @@
<div class="right">
<button
matTooltip="{{ 'ACTIONS.EDIT' | translate }}"
[disabled]="!canWrite || state === UserState.USER_STATE_INITIAL"
[disabled]="!canWrite"
(click)="openEditDialog(EditDialogType.EMAIL)"
mat-icon-button
>
@@ -107,7 +107,7 @@
[canWrite]="['user.write:' + user.id, 'user.write$'] | hasRole | async"
*ngIf="user?.human"
[human]="user.human"
(editType)="openEditDialog($event)"
(editType)="user.state !== UserState.USER_STATE_INITIAL ? openEditDialog($event) : resendInitEmail()"
(deletedPhone)="deletePhone()"
(resendEmailVerification)="resendEmailVerification()"
(resendPhoneVerification)="resendPhoneVerification()"