Skip to content

Commit 19b2a75

Browse files
Merge pull request #32 from intergral/opsPilotlink
fix(opspilot): handle opspilot linkage differently
2 parents fa1137f + 74a3058 commit 19b2a75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/app/features/logs/components/LogDetailsRow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
} from '@grafana/data';
1717
import { reportInteraction } from '@grafana/runtime';
1818
import { ClipboardButton, DataLinkButton, IconButton, PopoverContent, Themeable2, withTheme2 } from '@grafana/ui';
19+
import { OpspilotDataLinkButton } from 'app/intergral/OpspilotDataLinkButton';
1920

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

@@ -341,6 +342,7 @@ class UnThemedLogDetailsRow extends PureComponent<Props, State> {
341342
}
342343
return (
343344
<span key={`${link.title}-${i}`}>
345+
{link.title === "OpsPilot AI" ? <OpspilotDataLinkButton link={link} /> :
344346
<DataLinkButton
345347
buttonProps={{
346348
// Show tooltip message if max number of pinned lines has been reached
@@ -350,7 +352,7 @@ class UnThemedLogDetailsRow extends PureComponent<Props, State> {
350352
: undefined,
351353
}}
352354
link={link}
353-
/>
355+
/>}
354356
</span>
355357
);
356358
})}

0 commit comments

Comments
 (0)