From 9081ccadfed6b6cbf0c542cb7ef7b9f01134c2b2 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Thu, 29 Aug 2019 11:09:47 +0300 Subject: [PATCH] Disables buttons "Next" on DMP Wizard if required fields are empty --- .../src/app/ui/dmp/editor/grant-tab/funder-form-model.ts | 2 +- .../quick-wizard/dmp-editor/dmp-editor-wizard.component.ts | 1 - .../quick-wizard-editor/quick-wizard-editor.component.html | 7 ++++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/funder-form-model.ts b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/funder-form-model.ts index 9b0132635..ce7f8b967 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/funder-form-model.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/funder-form-model.ts @@ -36,7 +36,7 @@ export class FunderFormModel { baseContext.validation.push({ key: 'id', validators: [] }); baseContext.validation.push({ key: 'label', validators: [Validators.required, BackendErrorValidator(this.validationErrorModel, 'label')] }); baseContext.validation.push({ key: 'status', validators: [] }); - baseContext.validation.push({ key: 'existFunder', validators: [Validators.required, ValidJsonValidator, BackendErrorValidator(this.validationErrorModel, 'existFunder')] }); + baseContext.validation.push({ key: 'existFunder', validators: [BackendErrorValidator(this.validationErrorModel, 'existFunder')] }); return baseContext; } diff --git a/dmp-frontend/src/app/ui/quick-wizard/dmp-editor/dmp-editor-wizard.component.ts b/dmp-frontend/src/app/ui/quick-wizard/dmp-editor/dmp-editor-wizard.component.ts index 129c8862e..244c44097 100644 --- a/dmp-frontend/src/app/ui/quick-wizard/dmp-editor/dmp-editor-wizard.component.ts +++ b/dmp-frontend/src/app/ui/quick-wizard/dmp-editor/dmp-editor-wizard.component.ts @@ -31,7 +31,6 @@ export class DmpEditorWizardComponent extends BaseComponent implements OnInit, I @Input() formGroup: FormGroup; @Input() dmpLabel: string; @Input() datasetFormGroup: FormGroup; - //formGroup: FormGroup = null; private uiNotificationService: UiNotificationService profilesAutoCompleteConfiguration: SingleAutoCompleteConfiguration; diff --git a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html index e7feda185..523570bac 100644 --- a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html +++ b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html @@ -18,7 +18,7 @@ @@ -32,8 +32,9 @@