diff -r 037687868bc4 -r 182f46ea5a56 cms/app-client/app/controllers/results.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cms/app-client/app/controllers/results.js Thu Dec 10 17:04:51 2015 +0100 @@ -0,0 +1,17 @@ +import Ember from 'ember'; + +export default Ember.Controller.extend({ + queryParams: ['location'], + location: null, + filteredSounds: Ember.computed('location', 'model', function() { + var location = this.get('location'); + console.log("model ? ", this.get('model')); + var sounds = this.get('model'); + + if (location) { + return sounds.filterBy('location', location); + } else { + return sounds; + } + }) +});