Browse Source

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

UI: Entities table widget, add entity to widget actions additionalParams
pull/4651/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
74f289b27b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.ts

@ -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);
}
}

Loading…
Cancel
Save