Merge pull request #3795 from urbit/mp/leap/reorg

leap: return 'other' first, lowercase groups
This commit is contained in:
matildepark 2020-10-27 12:33:47 -04:00 committed by GitHub
commit dd6c26e0e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ export class Omnibox extends Component {
}
getSearchedCategories() {
return ['commands', 'groups', 'subscriptions', 'apps', 'other'];
return ['other', 'commands', 'groups', 'subscriptions', 'apps'];
}
control(evt) {
@ -154,7 +154,7 @@ export class Omnibox extends Component {
result.title.toLowerCase().includes(query) ||
result.link.toLowerCase().includes(query) ||
result.app.toLowerCase().includes(query) ||
(result.host !== null ? result.host.includes(query) : false)
(result.host !== null ? result.host.toLowerCase().includes(query) : false)
);
})
);