mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[MNT-22003] - fixed check on variable for visibility service (#6306)
* [MNT-22003] - fixed check on variable for visibility service * [MNT-22003] - update variable for test * [MNT-22003] - added extra unit test for checking the process variable passed Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
@@ -43,8 +43,11 @@ export class WidgetVisibilityService {
|
||||
private logService: LogService) {
|
||||
}
|
||||
|
||||
public refreshVisibility(form: FormModel) {
|
||||
public refreshVisibility(form: FormModel, processVarList?: TaskProcessVariableModel[]) {
|
||||
this.form = form;
|
||||
if (processVarList) {
|
||||
this.processVarList = processVarList;
|
||||
}
|
||||
if (form && form.tabs && form.tabs.length > 0) {
|
||||
form.tabs.map((tabModel) => this.refreshEntityVisibility(tabModel));
|
||||
}
|
||||
|
Reference in New Issue
Block a user