discourse/app/assets/javascripts/admin/controllers/admin-plugins.js.es6

21 lines
439 B
Plaintext
Raw Normal View History

export default Ember.Controller.extend({
adminRoutes: function() {
2018-06-15 11:03:24 -04:00
return this.get("model")
.map(p => {
if (p.get("enabled")) {
return p.admin_route;
}
})
.compact();
2018-07-02 23:14:53 -04:00
}.property(),
actions: {
clearFilter() {
this.setProperties({ filter: "", onlyOverridden: false });
},
toggleMenu() {
$(".admin-detail").toggleClass("mobile-closed mobile-open");
}
}
});