diff --git a/frontend/src/app/ui/user-profile/user-profile.component.html b/frontend/src/app/ui/user-profile/user-profile.component.html index 2c235790a..3a6e3a19e 100644 --- a/frontend/src/app/ui/user-profile/user-profile.component.html +++ b/frontend/src/app/ui/user-profile/user-profile.component.html @@ -41,6 +41,7 @@
{{'USER-PROFILE.SETTINGS.NAME' | translate}} +  *{{'GENERAL.VALIDATION.REQUIRED' | translate }}
@@ -48,6 +49,7 @@ {{formGroup.get('name').getError('backendError').message}} + {{'COMMONS.VALIDATION.REQUIRED' | translate}}
diff --git a/frontend/src/app/ui/user-profile/user-profile.component.ts b/frontend/src/app/ui/user-profile/user-profile.component.ts index 08ecfba33..75e04949b 100644 --- a/frontend/src/app/ui/user-profile/user-profile.component.ts +++ b/frontend/src/app/ui/user-profile/user-profile.component.ts @@ -301,7 +301,7 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes }); } - printErrors(rootform: UntypedFormGroup) { //TODO this is wrong + printErrors(rootform: UntypedFormGroup) { if (!rootform.valid) { Object.keys(rootform.controls).forEach(key => { const errors = rootform.get(key).errors;