Switched link column config order

This commit is contained in:
mpetrov 2025-02-13 17:44:04 +02:00
parent 5aacd04e15
commit 734064d8b1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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