mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
feat: Add global message search (#1385)
* feat: Search messages by content * Fix search UI * Add specs * chore: Filter search results * Update highlight logic * Rename query to searchTerm Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -18,6 +18,15 @@ class ConversationApi extends ApiClient {
|
||||
});
|
||||
}
|
||||
|
||||
search({ q }) {
|
||||
return axios.get(`${this.url}/search`, {
|
||||
params: {
|
||||
q,
|
||||
page: 1,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
toggleStatus(conversationId) {
|
||||
return axios.post(`${this.url}/${conversationId}/toggle_status`, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user