Merge pull request #4576 from ChantsovaEkaterina/improvement/entities-table-action-additional-params

UI: Entities table widget, add entity to widget actions additionalParams
This commit is contained in:
Igor Kulikov 2021-05-27 17:34:34 +03:00 committed by GitHub
commit 74f289b27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,7 +654,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni
entityName = entity.entityName;
entityLabel = entity.entityLabel;
}
this.ctx.actionsApi.handleWidgetAction($event, descriptors[0], entityId, entityName, null, entityLabel);
this.ctx.actionsApi.handleWidgetAction($event, descriptors[0], entityId, entityName, {entity}, entityLabel);
}
}
@ -670,7 +670,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni
entityName = entity.entityName;
entityLabel = entity.entityLabel;
}
this.ctx.actionsApi.handleWidgetAction($event, actionDescriptor, entityId, entityName, null, entityLabel);
this.ctx.actionsApi.handleWidgetAction($event, actionDescriptor, entityId, entityName, {entity}, entityLabel);
}
}