Skip to content

Commit

Permalink
fix(opspilot): handle opspilot linkage differently
Browse files Browse the repository at this point in the history
  • Loading branch information
dhodgsonintergral committed Jan 27, 2025
1 parent fa1137f commit 74a3058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/app/features/logs/components/LogDetailsRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from '@grafana/data';
import { reportInteraction } from '@grafana/runtime';
import { ClipboardButton, DataLinkButton, IconButton, PopoverContent, Themeable2, withTheme2 } from '@grafana/ui';
import { OpspilotDataLinkButton } from 'app/intergral/OpspilotDataLinkButton';

import { logRowToSingleRowDataFrame } from '../logsModel';

Expand Down Expand Up @@ -341,6 +342,7 @@ class UnThemedLogDetailsRow extends PureComponent<Props, State> {
}
return (
<span key={`${link.title}-${i}`}>
{link.title === "OpsPilot AI" ? <OpspilotDataLinkButton link={link} /> :
<DataLinkButton
buttonProps={{
// Show tooltip message if max number of pinned lines has been reached
Expand All @@ -350,7 +352,7 @@ class UnThemedLogDetailsRow extends PureComponent<Props, State> {
: undefined,
}}
link={link}
/>
/>}
</span>
);
})}
Expand Down

0 comments on commit 74a3058

Please sign in to comment.