mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 06:45:54 +08:00
feat: onClick is updated (#1732)
Co-authored-by: Pranay Prateek <pranay@signoz.io>
This commit is contained in:
parent
db105af89f
commit
4a244ad7b2
@ -3,6 +3,7 @@ import Table, { ColumnsType } from 'antd/lib/table';
|
|||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import duration from 'dayjs/plugin/duration';
|
import duration from 'dayjs/plugin/duration';
|
||||||
|
import history from 'lib/history';
|
||||||
import omit from 'lodash-es/omit';
|
import omit from 'lodash-es/omit';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useDispatch, useSelector } from 'react-redux';
|
import { useDispatch, useSelector } from 'react-redux';
|
||||||
@ -194,7 +195,11 @@ function TraceTable(): JSX.Element {
|
|||||||
onClick: (event): void => {
|
onClick: (event): void => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
window.open(getLink(record));
|
if (event.metaKey || event.ctrlKey) {
|
||||||
|
window.open(getLink(record), '_blank');
|
||||||
|
} else {
|
||||||
|
history.push(getLink(record));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
pagination={{
|
pagination={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user