File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ export default Ember.Controller.extend(PaginationMixin, {
11
11
12
12
totalItems : computed . readOnly ( 'model.meta.total' ) ,
13
13
14
+ categoryController : Ember . inject . controller ( 'category' ) ,
15
+ category : computed . alias ( 'categoryController.model' ) ,
16
+
14
17
currentSortBy : computed ( 'sort' , function ( ) {
15
18
return ( this . get ( 'sort' ) === 'downloads' ) ? 'Downloads' : 'Alphabetical' ;
16
19
} ) ,
Original file line number Diff line number Diff line change @@ -9,10 +9,5 @@ export default Ember.Route.extend({
9
9
model ( params ) {
10
10
params . category = this . paramsFor ( 'category' ) . category_id ;
11
11
return this . store . query ( 'crate' , params ) ;
12
- } ,
13
-
14
- setupController ( controller , model ) {
15
- controller . set ( 'category' , this . modelFor ( 'category' ) ) ;
16
- this . _super ( controller , model ) ;
17
- } ,
12
+ }
18
13
} ) ;
You can’t perform that action at this time.
0 commit comments