mirror of
https://github.com/grafana/grafana.git
synced 2025-01-02 12:17:01 -06:00
Dashboard: Top Share URL icon should share panel URL when on viewPanel page (#30000)
This commit is contained in:
parent
1a37ba24d3
commit
1c73ea1731
@ -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={() => {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user