Add search results for "company"

This commit is contained in:
Oliver Walters 2022-03-29 23:29:17 +11:00
parent 1f003b3f54
commit 2a604c244e

View File

@ -136,6 +136,20 @@ function updateSearch() {
}
);
}
if (user_settings.SEARCH_PREVIEW_SHOW_COMPANIES) {
// Search for matching companies
addSearchQuery(
'company',
'{% trans "Companies" %}',
'{% url "api-company-list" %}',
{},
renderCompany,
{
url: '/company',
}
);
}
// Wait until all the pending queries are completed
$.when.apply($, searchQueries).done(function() {