fix(console): enable phonenumber edit (#725)

* fix: edit phonenumber

* rm consolelog

* remove ? operator

* remove unnecessary check
This commit is contained in:
Max Peintner
2020-09-11 13:26:47 +02:00
committed by GitHub
parent 87c0010d54
commit 4931000dc9
4 changed files with 17 additions and 9 deletions
@@ -73,7 +73,8 @@
<ng-template #emailEdit>
<mat-form-field class="name">
<mat-label>{{ 'USER.EMAIL' | translate }}</mat-label>
<input *ngIf="user.human && user.human.email" matInput [(ngModel)]="user.human.email" />
<input *ngIf="user.human && user.human.email !== undefined && user.human.email !== null"
matInput [(ngModel)]="user.human.email" />
</mat-form-field>
<button (click)="emailEditState = false" mat-icon-button>
<mat-icon class="icon">close</mat-icon>
@@ -114,7 +115,8 @@
<ng-template #phoneEdit>
<mat-form-field class="name">
<mat-label>{{ 'USER.PHONE' | translate }}</mat-label>
<input *ngIf="user.human && user.human.phone" matInput [(ngModel)]="user.human.phone" />
<input *ngIf="user.human && user.human.phone !== undefined && user.human.phone !== null"
matInput [(ngModel)]="user.human.phone" />
</mat-form-field>
<button (click)="phoneEditState = false" mat-icon-button>
<mat-icon class="icon">close</mat-icon>