Merge pull request #15527 from grafana/15485-tab-in-url

fix: Remove tab param from url when leaving edit mode
This commit is contained in:
Torkel Ödegaard 2019-02-19 11:11:32 +01:00 committed by GitHub
commit fb3463ba4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export class DashNav extends PureComponent<Props> {
});
} else {
this.props.updateLocation({
query: { panelId: null, edit: null, fullscreen: null },
query: { panelId: null, edit: null, fullscreen: null, tab: null },
partial: true,
});
}

View File

@ -43,6 +43,7 @@ export class DashboardSrv {
delete urlParams.fullscreen;
delete urlParams.edit;
delete urlParams.panelId;
delete urlParams.tab;
this.$location.search(urlParams);
return;
}
@ -58,6 +59,7 @@ export class DashboardSrv {
urlParams.edit = true;
} else {
delete urlParams.edit;
delete urlParams.tab;
}
if (options.panelId || options.panelId === 0) {