diff --git a/dmp-frontend/src/app/form/dynamic-form.component.css b/dmp-frontend/src/app/form/dynamic-form.component.css index 263b37ebf..a6a3e17b6 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.css +++ b/dmp-frontend/src/app/form/dynamic-form.component.css @@ -27,4 +27,8 @@ .ui-steps.steps-custom .ui-steps-item .ui-steps-title { color: #555555; +} + +.ng-sidebar { + width: 40%; } \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index 2195b0308..c9508bebf 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -26,7 +26,6 @@ - diff --git a/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.html b/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.html index 7fac72e73..d5a44901a 100644 --- a/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.html +++ b/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.html @@ -1 +1 @@ - + diff --git a/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.ts b/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.ts index 8a3dee16a..1b909a732 100644 --- a/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.ts +++ b/dmp-frontend/src/app/form/pprogress-bar/progress-bar.component.ts @@ -7,8 +7,8 @@ import { FormGroup, FormControl, FormArray } from '@angular/forms' templateUrl: './progress-bar.component.html', }) export class ProgressBarComponent implements OnInit { - @Input() formGroup: FormGroup - @Input("progressValueAccuracy") public accuracy: number = 2 + @Input() formGroup: FormGroup + @Input("progressValueAccuracy") public accuracy: number = 1 constructor(private visibilityRulesService: VisibilityRulesService) { } @@ -16,12 +16,12 @@ export class ProgressBarComponent implements OnInit { ngOnInit() { this.formGroup .valueChanges - .subscribe(control => { - var progressSoFar = this.countFormControlsWithValue(this.formGroup); - var total = this.getFormControlDepthLength(this.formGroup); - var perc = (progressSoFar / total) * 100; - this.value = Number.parseFloat(perc.toPrecision(this.accuracy)); - }) + .subscribe(control => { + var progressSoFar = this.countFormControlsWithValue(this.formGroup); + var total = this.getFormControlDepthLength(this.formGroup); + var perc = (progressSoFar / total) * 100; + this.value = Number.parseFloat(perc.toPrecision(this.accuracy)); + }); } countFormControlsWithValue(form: FormGroup): number {