mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-06 09:29:12 +00:00
FIX: ensures filteredContent is recomputed when sortBy changes (#30)
This commit is contained in:
parent
7de1e5a68e
commit
0d655221f4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user