mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Plugins: Remove logs button instead of disabling it (#71448)
This commit is contained in:
+1
-15
@@ -19,7 +19,7 @@ import React from 'react';
|
||||
|
||||
import { dateTimeFormat, GrafanaTheme2, LinkModel, TimeZone } from '@grafana/data';
|
||||
import { config, locationService, reportInteraction } from '@grafana/runtime';
|
||||
import { Button, DataLinkButton, Icon, TextArea, useStyles2 } from '@grafana/ui';
|
||||
import { DataLinkButton, Icon, TextArea, useStyles2 } from '@grafana/ui';
|
||||
|
||||
import { autoColor } from '../../Theme';
|
||||
import { Divider } from '../../common/Divider';
|
||||
@@ -274,20 +274,6 @@ export default function SpanDetail(props: SpanDetailProps) {
|
||||
buttonProps={{ icon: 'gf-logs' }}
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
logLinkButton = (
|
||||
<Button
|
||||
variant="primary"
|
||||
size="sm"
|
||||
icon={'gf-logs'}
|
||||
disabled
|
||||
tooltip={
|
||||
'We did not match any variables between the link and this span. Check your configuration or this span attributes.'
|
||||
}
|
||||
>
|
||||
Logs for this span
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user