mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 01:54:12 +08:00
12 lines
236 B
JavaScript
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()
|
|
});
|