mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 07:25:53 +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 dayjs from 'dayjs';
|
||||
import duration from 'dayjs/plugin/duration';
|
||||
import history from 'lib/history';
|
||||
import omit from 'lodash-es/omit';
|
||||
import React from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
@ -194,7 +195,11 @@ function TraceTable(): JSX.Element {
|
||||
onClick: (event): void => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
window.open(getLink(record));
|
||||
if (event.metaKey || event.ctrlKey) {
|
||||
window.open(getLink(record), '_blank');
|
||||
} else {
|
||||
history.push(getLink(record));
|
||||
}
|
||||
},
|
||||
})}
|
||||
pagination={{
|
||||
|
Loading…
x
Reference in New Issue
Block a user