mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Explore: Translate table title in runtime to get a better test id (#83236)
* Explore: Translate table title in runtime to get a better test id * Fix escaping * Retrigger the build * Prettify
This commit is contained in:
parent
3901077f39
commit
ecb8447a7f
@ -7,7 +7,7 @@ import { getTemplateSrv } from '@grafana/runtime';
|
||||
import { TimeZone } from '@grafana/schema';
|
||||
import { Table, AdHocFilterItem, PanelChrome, withTheme2, Themeable2 } from '@grafana/ui';
|
||||
import { config } from 'app/core/config';
|
||||
import { t, Trans } from 'app/core/internationalization';
|
||||
import { t } from 'app/core/internationalization';
|
||||
import {
|
||||
hasDeprecatedParentRowIndex,
|
||||
migrateFromParentRowIndexToNestedFrames,
|
||||
@ -59,11 +59,9 @@ export class TableContainer extends PureComponent<Props> {
|
||||
name = data.refId || `${i}`;
|
||||
}
|
||||
|
||||
return name ? (
|
||||
<Trans i18nKey="explore.table.title-with-name">Table - {{ name }}</Trans>
|
||||
) : (
|
||||
t('explore.table.title', 'Table')
|
||||
);
|
||||
return name
|
||||
? t('explore.table.title-with-name', 'Table - {{name}}', { name, interpolation: { escapeValue: false } })
|
||||
: t('explore.table.title', 'Table');
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user