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

12 lines
236 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()
});