mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 04:05:56 +08:00
fix: fixed back navigation issue for dashboard details coming from dashboard list table (#6496)
This commit is contained in:
parent
67058b2a17
commit
0c5db1937e
@ -438,6 +438,7 @@ function DashboardsList(): JSX.Element {
|
|||||||
const getLink = (): string => `${ROUTES.ALL_DASHBOARD}/${dashboard.id}`;
|
const getLink = (): string => `${ROUTES.ALL_DASHBOARD}/${dashboard.id}`;
|
||||||
|
|
||||||
const onClickHandler = (event: React.MouseEvent<HTMLElement>): void => {
|
const onClickHandler = (event: React.MouseEvent<HTMLElement>): void => {
|
||||||
|
event.stopPropagation();
|
||||||
if (event.metaKey || event.ctrlKey) {
|
if (event.metaKey || event.ctrlKey) {
|
||||||
window.open(getLink(), '_blank');
|
window.open(getLink(), '_blank');
|
||||||
} else {
|
} else {
|
||||||
@ -458,7 +459,11 @@ function DashboardsList(): JSX.Element {
|
|||||||
placement="left"
|
placement="left"
|
||||||
overlayClassName="title-toolip"
|
overlayClassName="title-toolip"
|
||||||
>
|
>
|
||||||
<Link to={getLink()} className="title-link">
|
<Link
|
||||||
|
to={getLink()}
|
||||||
|
className="title-link"
|
||||||
|
onClick={(e): void => e.stopPropagation()}
|
||||||
|
>
|
||||||
<img
|
<img
|
||||||
src={dashboard?.image || Base64Icons[0]}
|
src={dashboard?.image || Base64Icons[0]}
|
||||||
alt="dashboard-image"
|
alt="dashboard-image"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user