FEATURE: Only show enabled plugins in the sidebar

This commit is contained in:
Kane York 2015-07-02 10:59:15 -07:00
parent af042ffe5e
commit 3fdbf287de
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
export default Ember.ArrayController.extend({
adminRoutes: function() {
return this.get('model').map(p => p.admin_route).compact();
return this.get('model').map(function(p) {
if (p.get('enabled')) {
return p.admin_route;
}
}).compact();
}.property()
});