mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -28,7 +28,7 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
|
|||||||
|
|
||||||
let processor: DisplayProcessor | undefined = undefined;
|
let processor: DisplayProcessor | undefined = undefined;
|
||||||
if (view && isNumber(colIndex)) {
|
if (view && isNumber(colIndex)) {
|
||||||
processor = view!.getFieldDisplayProcessor(colIndex as number);
|
processor = view.getFieldDisplayProcessor(colIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -57,13 +57,14 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
|
|||||||
|
|
||||||
if (hasLinks && getLinks) {
|
if (hasLinks && getLinks) {
|
||||||
return (
|
return (
|
||||||
<DataLinksContextMenu links={getLinks} config={value.field}>
|
<div style={{ width: '100%' }}>
|
||||||
{(api) => {
|
<DataLinksContextMenu links={getLinks} config={value.field}>
|
||||||
return this.renderComponent(valueProps, api);
|
{(api) => this.renderComponent(valueProps, api)}
|
||||||
}}
|
</DataLinksContextMenu>
|
||||||
</DataLinksContextMenu>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.renderComponent(valueProps, {});
|
return this.renderComponent(valueProps, {});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user