NavBar: app chrome state wrongly overwritten when ds modal is opened (#67952)

This commit is contained in:
Juan Cabanas
2023-05-08 16:51:42 -03:00
committed by GitHub
parent da21473527
commit 24668137f8
9 changed files with 67 additions and 50 deletions

View File

@@ -4,7 +4,10 @@ import React from 'react';
import { GrafanaTheme2 } from '@grafana/data/src';
import { selectors as e2eSelectors } from '@grafana/e2e-selectors/src';
import { Button, LoadingPlaceholder, Modal, ModalsController, useStyles2 } from '@grafana/ui/src';
import { generatePublicDashboardUrl } from 'app/features/dashboard/components/ShareModal/SharePublicDashboard/SharePublicDashboardUtils';
import {
generatePublicDashboardConfigUrl,
generatePublicDashboardUrl,
} from 'app/features/dashboard/components/ShareModal/SharePublicDashboard/SharePublicDashboardUtils';
import { useGetActiveUserDashboardsQuery } from '../../dashboard/api/publicDashboardApi';
@@ -37,7 +40,7 @@ export const DashboardsListModal = ({ email, onDismiss }: { email: string; onDis
<span className={styles.urlsDivider}></span>
<a
className={cx('external-link', styles.url)}
href={`/d/${dash.dashboardUid}?shareView=share`}
href={generatePublicDashboardConfigUrl(dash.dashboardUid)}
onClick={onDismiss}
>
Public dashboard settings