From 29e8f1f3539f805f2f58f4f3c785afbaf44b4436 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 15 Apr 2019 10:40:23 +0200 Subject: [PATCH] FEAT #8882 TIME 0:30 add email in profile modification --- src/frontend/app/profile/profile.component.html | 9 +++++++-- src/frontend/app/profile/profile.component.ts | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontend/app/profile/profile.component.html b/src/frontend/app/profile/profile.component.html index ec3cc01e51..99637f7173 100644 --- a/src/frontend/app/profile/profile.component.html +++ b/src/frontend/app/profile/profile.component.html @@ -18,10 +18,15 @@ <mat-tab label="{{'lang.informations' | translate}}"> <div class="profile-content"> <mat-form-field class="input-row"> - <input name="login" matInput placeholder="{{'lang.email' | translate}}" type="mail" - [(ngModel)]="profileInfo.email" (keyup)="newLogin.mail=newLogin.mail.toLowerCase()" + <input name="login" matInput placeholder="{{'lang.login' | translate}}" type="text" + [(ngModel)]="profileInfo.login" (keyup)="newLogin.login=newLogin.login.toLowerCase()" disabled required> </mat-form-field> + <mat-form-field class="input-row"> + <input name="email" matInput placeholder="{{'lang.email' | translate}}" type="mail" + [(ngModel)]="profileInfo.email" (keyup)="newLogin.mail=newLogin.mail.toLowerCase()" + required> + </mat-form-field> <mat-form-field class="input-row"> <input name="firstname" matInput placeholder="{{'lang.firstname' | translate}}" [(ngModel)]="profileInfo.firstname" required> diff --git a/src/frontend/app/profile/profile.component.ts b/src/frontend/app/profile/profile.component.ts index cc68daab6e..9dacf444a0 100644 --- a/src/frontend/app/profile/profile.component.ts +++ b/src/frontend/app/profile/profile.component.ts @@ -182,6 +182,7 @@ export class ProfileComponent implements OnInit { let profileToSend = { 'firstname': this.profileInfo.firstname, 'lastname': this.profileInfo.lastname, + 'email': this.profileInfo.email, 'picture': this.profileInfo.picture, 'preferences': this.profileInfo.preferences }; -- GitLab