mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Search spinners hides all results when loading more.
Regression from bc81f64a64.
This commit is contained in:
@@ -204,6 +204,8 @@ export default Ember.Controller.extend({
|
||||
return page === PAGE_LIMIT;
|
||||
},
|
||||
|
||||
searchButtonDisabled: Ember.computed.or("searching", "loading"),
|
||||
|
||||
_search() {
|
||||
if (this.get("searching")) {
|
||||
return;
|
||||
@@ -218,11 +220,12 @@ export default Ember.Controller.extend({
|
||||
|
||||
let args = { q: searchTerm, page: this.get("page") };
|
||||
|
||||
this.set("searching", true);
|
||||
this.set("loading", true);
|
||||
if (args.page === 1) {
|
||||
this.set("bulkSelectEnabled", false);
|
||||
this.get("selected").clear();
|
||||
this.set("searching", true);
|
||||
} else {
|
||||
this.set("loading", true);
|
||||
}
|
||||
|
||||
const sortOrder = this.get("sortOrder");
|
||||
|
||||
Reference in New Issue
Block a user