mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Do not show Switch to Org item for current organization in the org dropdown, Fixes #2136
This commit is contained in:
parent
6deaa87a4c
commit
b39f8fb4de
@ -55,7 +55,7 @@ function (angular, _, $, config) {
|
||||
|
||||
backendSrv.get('/api/user/orgs').then(function(orgs) {
|
||||
_.each(orgs, function(org) {
|
||||
if (org.isUsing) {
|
||||
if (org.orgId === contextSrv.user.orgId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user