From 3fdbf287dedddf316a860bf3e4f2930fcfb3cf1c Mon Sep 17 00:00:00 2001 From: Kane York Date: Thu, 2 Jul 2015 10:59:15 -0700 Subject: [PATCH] FEATURE: Only show enabled plugins in the sidebar --- .../javascripts/admin/controllers/admin-plugins.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 b/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 index 52b7cb6d8ba..b2eb1335ed8 100644 --- a/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-plugins.js.es6 @@ -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() });