2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: add .admin-interface class to BODY when in admin

removes some dead code as well
This commit is contained in:
Sam Saffron 2017-05-04 15:13:32 -04:00
parent 66cc4fff2c
commit c182dcc64c
4 changed files with 13 additions and 32 deletions

View file

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