Browse Source

added new translation key

pull/14009/head
Maksym Tsymbarov 1 year ago
parent
commit
da1252d868
  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
  3. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json

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" <table mat-table [dataSource]="source.timeseriesDatasource" [trackBy]="trackByRowTimestamp"
matSort [matSortActive]="source.pageLink.sortOrder.property" [matSortDirection]="source.pageLink.sortDirection()" matSortDisableClear> matSort [matSortActive]="source.pageLink.sortOrder.property" [matSortDirection]="source.pageLink.sortDirection()" matSortDisableClear>
<ng-container *ngIf="showTimestamp" [matColumnDef]="'0'"> <ng-container *ngIf="showTimestamp" [matColumnDef]="'0'">
<mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'widgets.table.display-timestamp' | translate }}</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'widgets.table.timestamp-column-name' | translate }}</mat-header-cell>
<mat-cell *matCellDef="let row; let rowIndex = index" <mat-cell *matCellDef="let row; let rowIndex = index"
[innerHTML]="cellContent(source, null, 0, row, row[0], rowIndex) | async" [innerHTML]="cellContent(source, null, 0, row, row[0], rowIndex) | async"
[style]="cellStyle(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 = ''; let title = '';
const header = this.sources[index].header.find(column => column.index.toString() === value); const header = this.sources[index].header.find(column => column.index.toString() === value);
if (value === '0') { if (value === '0') {
title = this.translate.instant('widgets.table.display-timestamp'); title = this.translate.instant('widgets.table.timestamp-column-name');
} else if (value === 'actions') { } else if (value === 'actions') {
title = 'Actions'; title = 'Actions';
} else { } else {

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -8973,6 +8973,7 @@
"show-empty-space-hidden-action": "Show empty space instead of hidden cell button action", "show-empty-space-hidden-action": "Show empty space instead of hidden cell button action",
"dont-reserve-space-hidden-action": "Don't reserve space for hidden action buttons", "dont-reserve-space-hidden-action": "Don't reserve space for hidden action buttons",
"display-timestamp": "Timestamp", "display-timestamp": "Timestamp",
"timestamp-column-name":"Timestamp",
"display-pagination": "Display pagination", "display-pagination": "Display pagination",
"default-page-size": "Default page size", "default-page-size": "Default page size",
"page-step-settings": "Page step settings", "page-step-settings": "Page step settings",

Loading…
Cancel
Save