discourse/app/assets/javascripts/admin/components/admin-wrapper.js.es6

12 lines
253 B
JavaScript

export default Ember.Component.extend({
didInsertElement() {
this._super(...arguments);
$("body").addClass("admin-interface");
},
willDestroyElement() {
this._super(...arguments);
$("body").removeClass("admin-interface");
}
});