|
|
|
@ -661,13 +661,13 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni |
|
|
|
} |
|
|
|
|
|
|
|
public onRowClick($event: Event, entity: EntityData, isDouble?: boolean) { |
|
|
|
if ($event) { |
|
|
|
$event.stopPropagation(); |
|
|
|
} |
|
|
|
this.entityDatasource.toggleCurrentEntity(entity); |
|
|
|
const actionSourceId = isDouble ? 'rowDoubleClick' : 'rowClick'; |
|
|
|
const descriptors = this.ctx.actionsApi.getActionDescriptors(actionSourceId); |
|
|
|
if (descriptors.length) { |
|
|
|
if ($event) { |
|
|
|
$event.stopPropagation(); |
|
|
|
} |
|
|
|
this.entityDatasource.toggleCurrentEntity(entity); |
|
|
|
let entityId; |
|
|
|
let entityName; |
|
|
|
let entityLabel; |
|
|
|
|