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:
parent
66cc4fff2c
commit
c182dcc64c
4 changed files with 13 additions and 32 deletions
11
app/assets/javascripts/admin/components/admin-wrapper.js.es6
Normal file
11
app/assets/javascripts/admin/components/admin-wrapper.js.es6
Normal file
|
@ -0,0 +1,11 @@
|
|||
export default Ember.Component.extend({
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
$('body').addClass('admin-interface');
|
||||
},
|
||||
|
||||
willDestroyElement() {
|
||||
this._super();
|
||||
$('body').removeClass('admin-interface');
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue