Browse Source

EntitiesTableWidgetComponent rename rowPointer to hasRowAction

pull/8960/head
deaflynx 3 years ago
parent
commit
5e0a6667f5
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html
  2. 4
      ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html

@ -89,7 +89,7 @@
<mat-header-row *matHeaderRowDef="displayedColumns; sticky: enableStickyHeader"></mat-header-row>
<mat-row [ngClass]="{'tb-current-entity': entityDatasource.isCurrentEntity(entity),
'invisible': entityDatasource.dataLoading,
'tb-pointer': rowPointer}"
'tb-pointer': hasRowAction}"
*matRowDef="let entity; columns: displayedColumns; let row = index"
[ngStyle]="rowStyle(entity, row)"
(click)="onRowClick($event, entity)" (dblclick)="onRowClick($event, entity, true)"></mat-row>

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

@ -150,7 +150,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni
public displayedColumns: string[] = [];
public entityDatasource: EntityDatasource;
public noDataDisplayMessageText: string;
public rowPointer: boolean;
public hasRowAction: boolean;
private setCellButtonAction: boolean;
private cellContentCache: Array<any> = [];
@ -279,7 +279,7 @@ export class EntitiesTableWidgetComponent extends PageComponent implements OnIni
this.setCellButtonAction = !!this.ctx.actionsApi.getActionDescriptors('actionCellButton').length;
this.rowPointer = !!this.ctx.actionsApi.getActionDescriptors('rowClick').length || !!this.ctx.actionsApi.getActionDescriptors('rowDoubleClick').length;
this.hasRowAction = !!this.ctx.actionsApi.getActionDescriptors('rowClick').length || !!this.ctx.actionsApi.getActionDescriptors('rowDoubleClick').length;
if (this.settings.entitiesTitle && this.settings.entitiesTitle.length) {
this.entitiesTitlePattern = this.utils.customTranslation(this.settings.entitiesTitle, this.settings.entitiesTitle);

Loading…
Cancel
Save