Revert "UX: Observe changes to plugin to hide/show plugin admin link without refresh."

This commit is contained in:
Neil Lalonde 2017-02-09 12:11:53 -05:00
parent 77033f4855
commit d68dd5b967
1 changed files with 6 additions and 13 deletions

View File

@ -1,16 +1,9 @@
import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Controller.extend({
@computed('model.@each.enabled_setting')
adminRoutes() {
let routes = [];
this.get('model').forEach(p => {
if (this.siteSettings[p.get('enabled_setting')] && p.get('admin_route')) {
routes.push(p.get('admin_route'));
adminRoutes: function() {
return this.get('model').map(p => {
if (p.get('enabled')) {
return p.admin_route;
}
});
return routes;
}
}).compact();
}.property()
});