Dashboard: Top Share URL icon should share panel URL when on viewPanel page (#30000)

This commit is contained in:
Divyam Bhasin 2021-01-28 12:27:28 -05:00 committed by GitHub
parent 1a37ba24d3
commit 1c73ea1731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -159,7 +159,7 @@ class DashNav extends PureComponent<Props> {
<ModalsController key="button-share">
{({ showModal, hideModal }) => (
<DashNavButton
tooltip="Share dashboard"
tooltip="Share dashboard or panel"
icon="share-alt"
iconSize="lg"
onClick={() => {

View File

@ -22,8 +22,6 @@ export function buildParams(useCurrentTimeRange: boolean, selectedTheme?: string
if (panel && !params.editPanel) {
params.viewPanel = panel.id;
} else {
delete params.viewPanel;
}
return params;