2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/assets/javascripts/admin/controllers/admin-plugins.js.es6
2018-06-15 17:03:24 +02:00

11 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()
});