2019-04-26 06:16:21 -04:00
|
|
|
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
|
2016-10-20 13:26:41 -04:00
|
|
|
export default Ember.Controller.extend({
|
2019-04-26 06:16:21 -04:00
|
|
|
@computed
|
2017-02-09 12:11:53 -05:00
|
|
|
adminRoutes: function() {
|
2019-05-27 04:15:39 -04:00
|
|
|
return this.model
|
2018-06-15 11:03:24 -04:00
|
|
|
.map(p => {
|
|
|
|
if (p.get("enabled")) {
|
|
|
|
return p.admin_route;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.compact();
|
2019-04-26 06:16:21 -04:00
|
|
|
},
|
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
actions: {
|
|
|
|
clearFilter() {
|
|
|
|
this.setProperties({ filter: "", onlyOverridden: false });
|
|
|
|
},
|
|
|
|
|
|
|
|
toggleMenu() {
|
|
|
|
$(".admin-detail").toggleClass("mobile-closed mobile-open");
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 17:32:59 -05:00
|
|
|
});
|