mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
* feat: Revamps search to use new search API's * Fixes search result spacing * Fixes message result * Fixes issue with empty search results * Remove console errors * Remove console errors * Fix console errors, canned responses * Fixes message rendering on results * Highlights search term * Fixes html rendering for emails * FIxes email rendering issues * Removes extra spaces and line breaks --------- Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
19 lines
293 B
JavaScript
19 lines
293 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class SearchAPI extends ApiClient {
|
|
constructor() {
|
|
super('search', { accountScoped: true });
|
|
}
|
|
|
|
get({ q }) {
|
|
return axios.get(this.url, {
|
|
params: {
|
|
q,
|
|
},
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new SearchAPI();
|