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

fix: edit email for initial users

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Max Peintner 2022-12-14 15:02:59 +01:00 committed by GitHub
parent c336d6fd3f
commit fc672c9adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<div class="right"> <div class="right">
<button <button
matTooltip="{{ 'ACTIONS.EDIT' | translate }}" matTooltip="{{ 'ACTIONS.EDIT' | translate }}"
[disabled]="!canWrite || state === UserState.USER_STATE_INITIAL" [disabled]="!canWrite"
(click)="openEditDialog(EditDialogType.EMAIL)" (click)="openEditDialog(EditDialogType.EMAIL)"
mat-icon-button mat-icon-button
> >

View File

@ -107,7 +107,7 @@
[canWrite]="['user.write:' + user.id, 'user.write$'] | hasRole | async" [canWrite]="['user.write:' + user.id, 'user.write$'] | hasRole | async"
*ngIf="user?.human" *ngIf="user?.human"
[human]="user.human" [human]="user.human"
(editType)="openEditDialog($event)" (editType)="user.state !== UserState.USER_STATE_INITIAL ? openEditDialog($event) : resendInitEmail()"
(deletedPhone)="deletePhone()" (deletedPhone)="deletePhone()"
(resendEmailVerification)="resendEmailVerification()" (resendEmailVerification)="resendEmailVerification()"
(resendPhoneVerification)="resendPhoneVerification()" (resendPhoneVerification)="resendPhoneVerification()"