mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #8194 from Alexander-N/fix-orgfilter
fix: make organisation filter case insensitive
This commit is contained in:
commit
d1e6f90f92
@ -84,7 +84,11 @@ export class SideMenuCtrl {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.orgItems.length < this.maxShownOrgs && (this.orgFilter === '' || org.name.indexOf(this.orgFilter) !== -1)){
|
||||
if (this.orgItems.length === this.maxShownOrgs) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.orgFilter === '' || (org.name.toLowerCase().indexOf(this.orgFilter.toLowerCase()) !== -1)) {
|
||||
this.orgItems.push({
|
||||
text: "Switch to " + org.name,
|
||||
icon: "fa fa-fw fa-random",
|
||||
|
Loading…
Reference in New Issue
Block a user