mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Redirect to home when switching orgs
This commit is contained in:
parent
56622ee2c6
commit
f6cbbe1e64
@ -87,6 +87,7 @@ export class SideMenuCtrl {
|
|||||||
switchOrg(orgId) {
|
switchOrg(orgId) {
|
||||||
this.backendSrv.post('/api/user/using/' + orgId).then(() => {
|
this.backendSrv.post('/api/user/using/' + orgId).then(() => {
|
||||||
window.location.href = window.location.href;
|
window.location.href = window.location.href;
|
||||||
|
this.$location.path('/');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user