2016-10-20 13:26:41 -04:00
|
|
|
export default Ember.Controller.extend({
|
2017-02-09 12:11:53 -05:00
|
|
|
adminRoutes: function() {
|
2018-06-15 11:03:24 -04:00
|
|
|
return this.get("model")
|
|
|
|
.map(p => {
|
|
|
|
if (p.get("enabled")) {
|
|
|
|
return p.admin_route;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.compact();
|
2017-02-09 12:11:53 -05:00
|
|
|
}.property()
|
2015-02-06 17:32:59 -05:00
|
|
|
});
|