Commit 01fc6da3 by Alexander-N

fix: make organisation filter case insensitive

parent 6ea99540
...@@ -84,7 +84,11 @@ export class SideMenuCtrl { ...@@ -84,7 +84,11 @@ export class SideMenuCtrl {
return; 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({ this.orgItems.push({
text: "Switch to " + org.name, text: "Switch to " + org.name,
icon: "fa fa-fw fa-random", icon: "fa fa-fw fa-random",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment