We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316f5fa commit 12f90d5Copy full SHA for 12f90d5
app/pods/questions/index/controller.js
@@ -4,22 +4,15 @@ import { task, timeout } from 'ember-concurrency';
4
export default Controller.extend({
5
queryParams: ['page', 'limit'],
6
page: 1,
7
- limit: 2,
+ limit: 10,
8
searchString: '',
9
searchTask: task(function * () {
10
yield timeout(250)
11
12
let searchStr = this.get('searchString').trim()
13
- let pageOpts = {}
14
15
- if(searchStr === '') {
16
- pageOpts = {
17
- limit: this.get('limit')
18
- }
19
20
const questions = yield this.get('store').query('question', {
21
include: 'user',
22
- page: pageOpts,
23
filter: {
24
title: {
25
$iLike: `%${this.get('searchString')}%`
0 commit comments