FIX: Show correct text when no search results found
This commit is contained in:
parent
043e6447b0
commit
ed709f8da1
|
@ -48,9 +48,9 @@ export default Ember.Controller.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("topics")
|
@discourseComputed("topics", "isSearching")
|
||||||
emptyTopics(topics) {
|
emptyTopics(topics, isSearching) {
|
||||||
return topics.length > 0 ? false : true;
|
return topics.length === 0 && !isSearching ? true : false;
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("loadMoreUrl")
|
@discourseComputed("loadMoreUrl")
|
||||||
|
|
Loading…
Reference in New Issue