2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
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

11 lines
229 B
JavaScript

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