Skip to content

Commit 96445df

Browse files
committed
services/search: Remove unnecessary q property
1 parent e5e7d1a commit 96445df

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/controllers/search.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import Controller from '@ember/controller';
22
import { computed } from '@ember/object';
3-
import { alias, bool, readOnly } from '@ember/object/computed';
4-
import { inject as service } from '@ember/service';
3+
import { bool, readOnly } from '@ember/object/computed';
54

65
import { task } from 'ember-concurrency';
76

87
import PaginationMixin from '../mixins/pagination';
98

109
export default Controller.extend(PaginationMixin, {
11-
search: service(),
1210
queryParams: ['all_keywords', 'page', 'per_page', 'q', 'sort'],
13-
q: alias('search.q'),
11+
q: null,
1412
page: '1',
1513
per_page: 10,
1614

app/services/search.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Service from '@ember/service';
22

33
export default class SearchService extends Service {
4-
q = null;
54
inputValue = null;
65
}

0 commit comments

Comments
 (0)