Browse Source

fixed timestamp translations

pull/14009/head
Maksym Tsymbarov 1 year ago
parent
commit
9935087812
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.ts

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

@ -47,7 +47,7 @@
<table mat-table [dataSource]="source.timeseriesDatasource" [trackBy]="trackByRowTimestamp"
matSort [matSortActive]="source.pageLink.sortOrder.property" [matSortDirection]="source.pageLink.sortDirection()" matSortDisableClear>
<ng-container *ngIf="showTimestamp" [matColumnDef]="'0'">
<mat-header-cell *matHeaderCellDef mat-sort-header>Timestamp</mat-header-cell>
<mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'audit-log.timestamp' | translate }}</mat-header-cell>
<mat-cell *matCellDef="let row; let rowIndex = index"
[innerHTML]="cellContent(source, null, 0, row, row[0], rowIndex) | async"
[style]="cellStyle(source, null, 0, row, row[0], rowIndex) | async">

2
ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.ts

@ -513,7 +513,7 @@ export class TimeseriesTableWidgetComponent extends PageComponent implements OnI
let title = '';
const header = this.sources[index].header.find(column => column.index.toString() === value);
if (value === '0') {
title = 'Timestamp';
title = this.translate.instant('audit-log.timestamp');
} else if (value === 'actions') {
title = 'Actions';
} else {

Loading…
Cancel
Save