diff options
Diffstat (limited to 'javascript/app/routes')
-rw-r--r-- | javascript/app/routes/package.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/javascript/app/routes/package.js b/javascript/app/routes/package.js index 1076779..037ed97 100644 --- a/javascript/app/routes/package.js +++ b/javascript/app/routes/package.js @@ -3,7 +3,7 @@ import {urls} from '../utils/api-urls'; export default Ember.Route.extend({ store : Ember.inject.service('store'), - model (params) { + model (params) { return this.get('store').loadPackage(params.packageId) .catch((e) => {console.log(e);this.transitionTo("/package-not-found");}); }, @@ -11,9 +11,6 @@ export default Ember.Route.extend({ this._super(controller, model); const packageId = this.modelFor('package').id; controller.set('bottomPanelVisible',false); - controller.set('createSearchUrlFunction',(query) => { - return urls.identifierSearchUrl(packageId,query); - }); }, actions : { openFile (filePath) { |