mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 01:03:44 +08:00
21 lines
439 B
JavaScript
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");
|
|
}
|
|
}
|
|
});
|