Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/routes/admin/messages/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default class extends Route.extend(EmberTableRouteMixin) {
const searchField = 'recipient';
const filterOptions = this.applySearchFilters([], params, searchField);
let queryString = {
filter : filterOptions,
'page[size]' : params.per_page || 100,
'page[number' : params.page || 1
filter : filterOptions,
'page[size]' : params.per_page || 100,
'page[number]' : params.page || 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking into #3693 then I found the wrong syntax page[number

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem with #3693 is due to wrong passing of querystring. I have some doubts regarding that to discuss in technical meeting.

};
queryString = this.applySortFilters(queryString, params);
return this.asArray(this.modelFor('admin.messages', queryString));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the queryString should be in 'admin.messeges' with page[size] and page[number]. But how to pass it there?

Expand Down