mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Rename method
This commit is contained in:
parent
327c268742
commit
0ce0160af8
|
@ -82,8 +82,9 @@ export default class DiscussionList extends Component {
|
||||||
* discussion results.
|
* discussion results.
|
||||||
*
|
*
|
||||||
* @return {Object}
|
* @return {Object}
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
params() {
|
requestParams() {
|
||||||
const params = Object.assign({include: ['startUser', 'lastUser']}, this.props.params);
|
const params = Object.assign({include: ['startUser', 'lastUser']}, this.props.params);
|
||||||
|
|
||||||
params.sort = this.sortMap()[params.sort];
|
params.sort = this.sortMap()[params.sort];
|
||||||
|
@ -150,7 +151,7 @@ export default class DiscussionList extends Component {
|
||||||
return m.deferred().resolve(preloadedDiscussions).promise;
|
return m.deferred().resolve(preloadedDiscussions).promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = this.params();
|
const params = this.requestParams();
|
||||||
params.page = {offset};
|
params.page = {offset};
|
||||||
params.include = params.include.join(',');
|
params.include = params.include.join(',');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user