Browse Source

Switched link column config order

pull/12685/head
mpetrov 2 years ago
parent
commit
734064d8b1
  1. 2
      ui-ngx/src/app/modules/home/components/event/event-table-config.ts
  2. 2
      ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts

2
ui-ngx/src/app/modules/home/components/event/event-table-config.ts

@ -363,9 +363,9 @@ export class EventTableConfig extends EntityTableConfig<Event, TimePageLink> {
new EntityLinkTableColumn<Event>('entityId', 'event.entity-id', '100px',
(entity) => `<span style="display: inline-block; width: 9ch">${entity.body.entityId.substring(0, 8)}…</span>`,
(entity) => getEntityDetailsPageURL(entity.body.entityId, entity.body.entityType as EntityType),
() => ({padding: '0 12px 0 0'}),
false,
() => ({padding: '0 12px 0 0'}),
() => ({padding: '0 12px 0 0'}),
(entity) => entity.body.entityId,
{
name: this.translate.instant('event.copy-entity-id'),

2
ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts

@ -121,8 +121,8 @@ export class EntityLinkTableColumn<T extends BaseData<HasId>> extends BaseEntity
public width: string = '0px',
public cellContentFunction: CellContentFunction<T> = (entity, property) => entity[property] ? entity[property] : '',
public entityURL: (entity) => string,
public cellStyleFunction: CellStyleFunction<T> = () => ({}),
public sortable: boolean = true,
public cellStyleFunction: CellStyleFunction<T> = () => ({}),
public headerCellStyleFunction: HeaderCellStyleFunction<T> = () => ({}),
public cellTooltipFunction: CellTooltipFunction<T> = () => undefined,
public actionCell: CellActionDescriptor<T> = null) {

Loading…
Cancel
Save