mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 23:14:04 -04:00
FEATURE: Only show enabled plugins in the sidebar
This commit is contained in:
parent
af042ffe5e
commit
3fdbf287de
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
export default Ember.ArrayController.extend({
|
export default Ember.ArrayController.extend({
|
||||||
|
|
||||||
adminRoutes: function() {
|
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()
|
}.property()
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue