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

11 lines
233 B
Text
Raw Normal View History

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