mirror of
https://github.com/discourse/discourse.git
synced 2025-06-23 01:51:30 +08:00
FEATURE: Only show enabled plugins in the sidebar
This commit is contained in:
@ -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()
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user