mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix url param errors
This commit is contained in:
parent
624f3a0173
commit
a0da66610e
@ -21,7 +21,8 @@ export class KeybindingSrv {
|
|||||||
private datasourceSrv,
|
private datasourceSrv,
|
||||||
private timeSrv,
|
private timeSrv,
|
||||||
private contextSrv,
|
private contextSrv,
|
||||||
private $window
|
private $window,
|
||||||
|
private $route
|
||||||
) {
|
) {
|
||||||
// clear out all shortcuts on route change
|
// clear out all shortcuts on route change
|
||||||
$rootScope.$on('$routeChangeSuccess', () => {
|
$rootScope.$on('$routeChangeSuccess', () => {
|
||||||
@ -271,7 +272,8 @@ export class KeybindingSrv {
|
|||||||
this.bind('d a', () => {
|
this.bind('d a', () => {
|
||||||
this.$location.search('autofitpanels', this.$location.search().autofitpanels ? null : true);
|
this.$location.search('autofitpanels', this.$location.search().autofitpanels ? null : true);
|
||||||
//Force reload
|
//Force reload
|
||||||
this.$window.location.href = this.$location.absUrl();
|
|
||||||
|
this.$route.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user