mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
Fixes some Ember Deprecations for 1.13:
- Remove ArrayController - Remove {{view}} from templates - Replace many cases of needs: [‘controller’] with inject - Enable Ember Legacy Views
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
export default Ember.ArrayController.extend({
|
||||
|
||||
export default Ember.Controller.extend({
|
||||
adminRoutes: function() {
|
||||
return this.get('model').map(function(p) {
|
||||
if (p.get('enabled')) {
|
||||
return p.admin_route;
|
||||
}
|
||||
return this.get('model').map(p => {
|
||||
if (p.get('enabled')) {
|
||||
return p.admin_route;
|
||||
}
|
||||
}).compact();
|
||||
}.property()
|
||||
});
|
||||
|
Reference in New Issue
Block a user