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.
this.get()
1 parent 1b2b9ed commit 344309fCopy full SHA for 344309f
app/controllers/search.js
@@ -16,12 +16,12 @@ export default class SearchController extends Controller {
16
17
@computed('dataTask.{lastSuccessful,isRunning}')
18
get hasData() {
19
- return this.get('dataTask.lastSuccessful') || !this.get('dataTask.isRunning');
+ return this.dataTask.lastSuccessful || !this.dataTask.isRunning;
20
}
21
22
23
get firstResultPending() {
24
- return !this.get('dataTask.lastSuccessful') && this.get('dataTask.isRunning');
+ return !this.dataTask.lastSuccessful && this.dataTask.isRunning;
25
26
27
@readOnly('model.meta.total') totalItems;
0 commit comments