FIX: Show correct text when no search results found

This commit is contained in:
Justin DiRose 2019-11-18 12:05:25 -06:00
parent 043e6447b0
commit ed709f8da1
1 changed files with 3 additions and 3 deletions

View File

@ -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")