Commit 891b2ca1 by Johannes Schill

fix: Have the tab param removed from the url when leaving edit mode #15485

parent 14d8a942
...@@ -65,7 +65,7 @@ export class DashNav extends PureComponent<Props> { ...@@ -65,7 +65,7 @@ export class DashNav extends PureComponent<Props> {
}); });
} else { } else {
this.props.updateLocation({ this.props.updateLocation({
query: { panelId: null, edit: null, fullscreen: null }, query: { panelId: null, edit: null, fullscreen: null, tab: null },
partial: true, partial: true,
}); });
} }
......
...@@ -43,6 +43,7 @@ export class DashboardSrv { ...@@ -43,6 +43,7 @@ export class DashboardSrv {
delete urlParams.fullscreen; delete urlParams.fullscreen;
delete urlParams.edit; delete urlParams.edit;
delete urlParams.panelId; delete urlParams.panelId;
delete urlParams.tab;
this.$location.search(urlParams); this.$location.search(urlParams);
return; return;
} }
...@@ -58,6 +59,7 @@ export class DashboardSrv { ...@@ -58,6 +59,7 @@ export class DashboardSrv {
urlParams.edit = true; urlParams.edit = true;
} else { } else {
delete urlParams.edit; delete urlParams.edit;
delete urlParams.tab;
} }
if (options.panelId || options.panelId === 0) { if (options.panelId || options.panelId === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment