Commit d99121d6 by Lukas Siatka Committed by Lukas Siatka

Explore: updates Logs component to use MetaInfoText component

parent a5ca5dff
...@@ -19,6 +19,7 @@ import { Switch, LogLabels, ToggleButtonGroup, ToggleButton, LogRows } from '@gr ...@@ -19,6 +19,7 @@ import { Switch, LogLabels, ToggleButtonGroup, ToggleButton, LogRows } from '@gr
import store from 'app/core/store'; import store from 'app/core/store';
import { ExploreGraphPanel } from './ExploreGraphPanel'; import { ExploreGraphPanel } from './ExploreGraphPanel';
import { MetaInfoText } from './MetaInfoText';
const SETTINGS_KEYS = { const SETTINGS_KEYS = {
showLabels: 'grafana.explore.logs.showLabels', showLabels: 'grafana.explore.logs.showLabels',
...@@ -219,14 +220,14 @@ export class Logs extends PureComponent<Props, State> { ...@@ -219,14 +220,14 @@ export class Logs extends PureComponent<Props, State> {
</div> </div>
{hasData && meta && ( {hasData && meta && (
<div className="logs-panel-meta"> <MetaInfoText
{meta.map(item => ( metaItems={meta.map(item => {
<div className="logs-panel-meta__item" key={item.label}> return {
<span className="logs-panel-meta__label">{item.label}:</span> label: item.label,
<span className="logs-panel-meta__value">{renderMetaItem(item.value, item.kind)}</span> value: renderMetaItem(item.value, item.kind),
</div> };
))} })}
</div> />
)} )}
<LogRows <LogRows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment