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")
|
||||
emptyTopics(topics) {
|
||||
return topics.length > 0 ? false : true;
|
||||
@discourseComputed("topics", "isSearching")
|
||||
emptyTopics(topics, isSearching) {
|
||||
return topics.length === 0 && !isSearching ? true : false;
|
||||
},
|
||||
|
||||
@discourseComputed("loadMoreUrl")
|
||||
|
|
Loading…
Reference in New Issue