Removes console.log
This commit is contained in:
parent
49c08f5061
commit
edd2a64fd7
|
@ -1,21 +1,19 @@
|
|||
<form *ngIf="form" novalidate [formGroup]="form" class="col-12 p-0 form-container">
|
||||
<!-- <app-form-progress-indication class="col-12" *ngIf="form" [formGroup]="form"></app-form-progress-indication> -->
|
||||
<div class="col-12 intro">
|
||||
{{'DMP-EDITOR.DATASET-DESCRIPTION.INTRO' | translate}}
|
||||
</div>
|
||||
<form *ngIf="form" novalidate [formGroup]="form" class="col-12 card">
|
||||
<div class="row">
|
||||
<div class="dynamic-form-editor p-0 col-md-12">
|
||||
<div id="form-container">
|
||||
<mat-vertical-stepper #stepper [linear]="false">
|
||||
<div *ngFor="let pageFormGroup of form.get('pages')['controls']; let z = index;">
|
||||
<div *ngFor="let sectionFormGroup of pageFormGroup.get('sections')['controls']; let i = index;">
|
||||
<mat-step [stepControl]="sectionFormGroup">
|
||||
<ng-template matStepLabel><span class="toc-page-header" [id]="'page_' + z">{{pageFormGroup.get('title').value}}</span></ng-template>
|
||||
<!-- <div *ngIf="stepper.selectedIndex == z" class="row"> -->
|
||||
<div class="row">
|
||||
<app-form-section class="col-12" [form]="sectionFormGroup" [path]="z+1" [pathName]="'pages.'+z+'.sections.'+i" [datasetProfileId]="datasetProfileId" [linkToScroll]="linkToScroll"></app-form-section>
|
||||
</div>
|
||||
</mat-step>
|
||||
<div *ngFor="let pageFormGroup of form.get('pages')['controls']; let z = index;">
|
||||
<div *ngFor="let sectionFormGroup of pageFormGroup.get('sections')['controls']; let i = index;">
|
||||
<div class="row">
|
||||
<app-form-section class="col-12" [form]="sectionFormGroup" [path]="z+1"
|
||||
[pathName]="'pages.'+z+'.sections.'+i" [datasetProfileId]="datasetProfileId"
|
||||
[linkToScroll]="linkToScroll"></app-form-section>
|
||||
</div>
|
||||
</div>
|
||||
</mat-vertical-stepper>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -127,14 +127,12 @@ export class TableOfContents extends BaseComponent implements OnInit {
|
|||
let innerPage;
|
||||
for (const link of this.links) {
|
||||
link.selected = false;
|
||||
console.log(link);
|
||||
if (link.type === 'mat-expansion-panel') {
|
||||
innerPage = +link.name.split(".",1)[0];
|
||||
if(isNaN(innerPage)) { innerPage = +link.name.split(" ",1) }
|
||||
} else if (link.type === 'h5') {
|
||||
innerPage = +link.name.split(".",1)[0];
|
||||
}
|
||||
console.log('innerPage ', innerPage)
|
||||
if (headerPage === innerPage && (link.type !== 'mat-expansion-panel' || (link.type === 'mat-expansion-panel' && link.id.split(".")[4]))) {
|
||||
link.show = !link.show;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue