+
{{formGroup.get('profiles').getError('backendError').message}}
diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html
index ea6fc8b49..7c979743a 100644
--- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html
+++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.html
@@ -33,17 +33,17 @@
{{'DMP-EDITOR.STEPPER.USER-GUIDE' | translate}}
- - {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (1)
+ - {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (1)
- {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (done)
- - {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (2)
+ - {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (2)
- {{'DMP-EDITOR.STEPPER.MAIN-INFO' | translate}} (done)
- - {{'DMP-EDITOR.STEPPER.FUNDING-INFO' | translate}} (2)
+ - {{'DMP-EDITOR.STEPPER.FUNDING-INFO' | translate}} (2)
- {{'DMP-EDITOR.STEPPER.FUNDING-INFO' | translate}} (done)
- {{'DMP-EDITOR.STEPPER.LICENSE-INFO' | translate}}
- - {{'DMP-EDITOR.STEPPER.DATASET-INFO' | translate}} (1)
+ - {{'DMP-EDITOR.STEPPER.DATASET-INFO' | translate}} (1)
- {{'DMP-EDITOR.STEPPER.DATASET-INFO' | translate}} (done)
diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts
index c9b412943..e6aef200c 100644
--- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts
+++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts
@@ -99,6 +99,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
maxStep: number = 4;
scrollTop: number;
+ hintErrors:boolean = false;
constructor(
private dmpProfileService: DmpProfileService,
@@ -412,6 +413,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
// console.log("update ", this.formGroup);
if (!this.isFormValid()) {
this.showValidationErrorsDialog();
+ this.hintErrors = true;
return;
}
this.onSubmit(addNew, showAddDatasetDialog);
@@ -815,7 +817,10 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
if(aControl.errors){
//check if has placeholder
if( (aControl).nativeElement !== undefined && (aControl).nativeElement !== null){
- controlName = this._getPlaceHolder(aControl);
+ const placeholder = this._getPlaceHolder(aControl);
+ if(placeholder){
+ controlName = placeholder;
+ }
}
const errorMessage = this._getErrorMessage(aControl, controlName);
@@ -856,6 +861,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
if(!this._isDMPDescriptionValid()){
const errmess = this._buildDMPDescriptionErrorMessages();
this.showValidationErrorsDialog(undefined, errmess);
+ this.hintErrors = true;
return;
}