mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:15:46 +08:00
bf91532260
- Remove ArrayController - Remove {{view}} from templates - Replace many cases of needs: [‘controller’] with inject - Enable Ember Legacy Views
10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
export default Ember.Controller.extend({
|
|
adminRoutes: function() {
|
|
return this.get('model').map(p => {
|
|
if (p.get('enabled')) {
|
|
return p.admin_route;
|
|
}
|
|
}).compact();
|
|
}.property()
|
|
});
|