discourse/app/assets/javascripts/admin/components/admin-wrapper.js.es6
Sam Saffron c182dcc64c FEATURE: add .admin-interface class to BODY when in admin
removes some dead code as well
2017-05-04 15:13:32 -04:00

12 lines
229 B
JavaScript

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