Plugins: Remove logs button instead of disabling it (#71448)

pull/71824/head^2
Fabrizio 2 years ago committed by GitHub
parent 1c358de190
commit ef82932f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      public/app/features/explore/TraceView/components/TraceTimelineViewer/SpanDetail/index.tsx

@ -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>
);
}
}

Loading…
Cancel
Save