discourse/app/assets/javascripts/admin/controllers/admin-plugins.js.es6
2018-07-03 11:14:53 +08:00

21 lines
439 B
JavaScript

export default Ember.Controller.extend({
adminRoutes: function() {
return this.get("model")
.map(p => {
if (p.get("enabled")) {
return p.admin_route;
}
})
.compact();
}.property(),
actions: {
clearFilter() {
this.setProperties({ filter: "", onlyOverridden: false });
},
toggleMenu() {
$(".admin-detail").toggleClass("mobile-closed mobile-open");
}
}
});