Dateset Edtitor: Scroll to top in Main info. Add checkVisibility in recursion of progress bar status calculation. Increase time of selected entry in tableofcontents
This commit is contained in:
parent
59cba483b6
commit
655483b8e2
|
@ -1239,6 +1239,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
|
||||||
this.step = index + (selected.type === ToCEntryType.FieldSet?1:0.5);
|
this.step = index + (selected.type === ToCEntryType.FieldSet?1:0.5);
|
||||||
} else {
|
} else {
|
||||||
this.step = 0;
|
this.step = 0;
|
||||||
|
this.resetScroll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,12 +179,12 @@ export class FormProgressIndicationComponent extends BaseComponent implements On
|
||||||
if(!checkVisibility || (!formControl.get('id')?.value || this.visibilityRulesService.checkElementVisibility(formControl.get('id').value))) {
|
if(!checkVisibility || (!formControl.get('id')?.value || this.visibilityRulesService.checkElementVisibility(formControl.get('id').value))) {
|
||||||
Object.keys(formControl.controls).forEach(item => {
|
Object.keys(formControl.controls).forEach(item => {
|
||||||
const control = formControl.get(item);
|
const control = formControl.get(item);
|
||||||
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(control);
|
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(control, checkVisibility);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (formControl instanceof FormArray) {
|
} else if (formControl instanceof FormArray) {
|
||||||
formControl.controls.forEach(item => {
|
formControl.controls.forEach(item => {
|
||||||
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(item);
|
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(item, checkVisibility);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return valueCurrent;
|
return valueCurrent;
|
||||||
|
|
|
@ -449,7 +449,7 @@ export class TableOfContents extends BaseComponent implements OnInit, OnChanges
|
||||||
this.entrySelected.emit({entry: entry, execute: execute});
|
this.entrySelected.emit({entry: entry, execute: execute});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.isSelecting = false;
|
this.isSelecting = false;
|
||||||
}, 200);
|
}, 600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"loginProviders": {
|
"loginProviders": {
|
||||||
"enabled": [1, 2, 3, 4, 5, 6, 7, 8],
|
"enabled": [1, 2, 3, 4, 5, 6, 7, 8],
|
||||||
"facebookConfiguration": { "clientId": "" },
|
"facebookConfiguration": { "clientId": "" },
|
||||||
"googleConfiguration": { "clientId": "" },
|
"googleConfiguration": { "clientId": "524432312250-sc9qsmtmbvlv05r44onl6l93ia3k9deo.apps.googleusercontent.com" },
|
||||||
"linkedInConfiguration": {
|
"linkedInConfiguration": {
|
||||||
"clientId": "",
|
"clientId": "",
|
||||||
"oauthUrl": "https://www.linkedin.com/oauth/v2/authorization",
|
"oauthUrl": "https://www.linkedin.com/oauth/v2/authorization",
|
||||||
|
|
Loading…
Reference in New Issue