FIX: Fixed vanishing select boxes on full search as new content loads

This commit is contained in:
venarius 2019-03-11 10:13:51 +01:00 committed by Robin Ward
parent 7ae1afa7d9
commit 5f00624814
1 changed files with 6 additions and 4 deletions

View File

@ -216,12 +216,14 @@ export default Ember.Controller.extend({
return;
}
var 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();
var args = { q: searchTerm, page: this.get("page") };
}
const sortOrder = this.get("sortOrder");
if (sortOrder && SortOrders[sortOrder].term) {