feat: Add infinite loader, option for increasing page size (#8525)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Pranav Raj S
2023-12-10 20:09:17 -08:00
committed by GitHub
parent 27239ae14a
commit 8dfe193461
3 changed files with 72 additions and 37 deletions

View File

@@ -160,6 +160,6 @@ class ConversationFinder
:taggings, :inbox, { assignee: { avatar_attachment: [:blob] } }, { contact: { avatar_attachment: [:blob] } }, :team, :contact_inbox
)
sort_by = SORT_OPTIONS[params[:sort_by]] || SORT_OPTIONS['latest']
@conversations.send(sort_by).page(current_page)
@conversations.send(sort_by).page(current_page).per(ENV.fetch('CONVERSATION_RESULTS_PER_PAGE', '25').to_i)
end
end