Skip to content

Commit 12f90d5

Browse files
committed
Removed Pagination From SearchBox Results
1 parent 316f5fa commit 12f90d5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app/pods/questions/index/controller.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@ import { task, timeout } from 'ember-concurrency';
44
export default Controller.extend({
55
queryParams: ['page', 'limit'],
66
page: 1,
7-
limit: 2,
7+
limit: 10,
88
searchString: '',
99
searchTask: task(function * () {
1010
yield timeout(250)
1111

1212
let searchStr = this.get('searchString').trim()
13-
let pageOpts = {}
1413

15-
if(searchStr === '') {
16-
pageOpts = {
17-
limit: this.get('limit')
18-
}
19-
}
2014
const questions = yield this.get('store').query('question', {
2115
include: 'user',
22-
page: pageOpts,
2316
filter: {
2417
title: {
2518
$iLike: `%${this.get('searchString')}%`

0 commit comments

Comments
 (0)