discourse/app/assets/javascripts/admin/controllers/admin-plugins.js.es6

11 lines
233 B
JavaScript

export default Ember.ArrayController.extend({
adminRoutes: function() {
return this.get('model').map(function(p) {
if (p.get('enabled')) {
return p.admin_route;
}
}).compact();
}.property()
});