Enhancement: Paginate conversation calls in tabs (#560)
* Use conversationPage module for pagination * Load more conversations * Reset list if conversation status is changed * Add specs to conversationPage * Reset filter when page is re-mounted * Update text * Update text
This commit is contained in:
parent
e5bc372a29
commit
0740d4762f
28 changed files with 395 additions and 141 deletions
|
@ -6,12 +6,13 @@ class ConversationApi extends ApiClient {
|
|||
super('conversations');
|
||||
}
|
||||
|
||||
get({ inboxId, status, assigneeType }) {
|
||||
get({ inboxId, status, assigneeType, page }) {
|
||||
return axios.get(this.url, {
|
||||
params: {
|
||||
inbox_id: inboxId,
|
||||
status,
|
||||
assignee_type_id: assigneeType,
|
||||
assignee_type: assigneeType,
|
||||
page,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue