From 9af2be155bbd9d91c74f9bc017019fab62f2b746 Mon Sep 17 00:00:00 2001 From: annabakouli Date: Fri, 22 Dec 2017 16:30:15 +0200 Subject: [PATCH] no message --- .../app/dataset-wizard/dataset-wizard.component.ts | 2 +- .../src/app/form/dynamic-form.component.html | 8 ++++---- dmp-frontend/src/app/form/dynamic-form.component.ts | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dmp-frontend/src/app/dataset-wizard/dataset-wizard.component.ts b/dmp-frontend/src/app/dataset-wizard/dataset-wizard.component.ts index 77e48977f..86d815708 100644 --- a/dmp-frontend/src/app/dataset-wizard/dataset-wizard.component.ts +++ b/dmp-frontend/src/app/dataset-wizard/dataset-wizard.component.ts @@ -112,7 +112,7 @@ export class DatasetWizardComponent implements AfterViewInit { formSubmit(): void { //this.touchAllFormFields(this.formGroup); - if(this.isNew)return; + //if(this.isNew)return; if (!this.isFormValid()) { return; } this.onSubmit(); } diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index e578cf0b7..73341780d 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -1,14 +1,14 @@ 
- + - -
@@ -21,7 +21,7 @@
-
+
diff --git a/dmp-frontend/src/app/form/dynamic-form.component.ts b/dmp-frontend/src/app/form/dynamic-form.component.ts index 1499852e3..bd39d83e6 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.ts +++ b/dmp-frontend/src/app/form/dynamic-form.component.ts @@ -37,7 +37,7 @@ export class DynamicFormComponent implements OnInit { pages: Array; activeStepperIndex: number = 1; visibleSidebar: boolean = false; - + datasetProfileDefinitionModel: DatasetProfileDefinitionModel private progressbar: boolean = false; private currentPageIndex: number = 0; @@ -56,13 +56,13 @@ export class DynamicFormComponent implements OnInit { ngOnInit() { - let datasetProfileDefinitionModel: DatasetProfileDefinitionModel = this.dataModel.datasetProfileDefinition - this.pages = this.getPages(datasetProfileDefinitionModel); + this.datasetProfileDefinitionModel = this.dataModel.datasetProfileDefinition + this.pages = this.getPages(this.datasetProfileDefinitionModel); this.createPagination(); - this.form = datasetProfileDefinitionModel.buildForm(); + this.form = this.datasetProfileDefinitionModel.buildForm(); this.visibilityRulesService.formGroup = this.form; - //let rules: Rule[] = new JsonSerializer().fromJSONArray(response.rules, Rule); - //this.visibilityRulesService.buildVisibilityRules(rules) + let rules: Rule[] = new JsonSerializer().fromJSONArray(this.datasetProfileDefinitionModel.rules, Rule); + this.visibilityRulesService.buildVisibilityRules(rules) this.progressbar = true; this.route.fragment.subscribe((fragment: string) => {