aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/routes
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-02-13 23:44:05 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-02-13 23:44:05 +0300
commite8ded03ec40e0ba3d17b9e3e57805ce9afd43534 (patch)
treeb669e381faed51dff9445fe6d869513c46cb5589 /javascript/app/routes
parent0b17136d965ddc602a5a0176b538bdb0a47f4d12 (diff)
Add a switch between 'search in the current package' and 'search in all packages' on the package page
Diffstat (limited to 'javascript/app/routes')
-rw-r--r--javascript/app/routes/package.js5
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) {