FIX: ensures filteredContent is recomputed when sortBy changes (#30)
This commit is contained in:
@@ -27,7 +27,7 @@ export default Ember.Controller.extend({
|
||||
sortBy: ["last_run_at:desc"],
|
||||
sortedQueries: Em.computed.sort("model", "sortBy"),
|
||||
|
||||
@computed("search")
|
||||
@computed("search", "sortBy")
|
||||
filteredContent(search) {
|
||||
const regexp = new RegExp(this.get("search"), "i");
|
||||
return this.get("sortedQueries").filter(function(result) {
|
||||
|
||||
Reference in New Issue
Block a user