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

13 lines
290 B
JavaScript

import Component from "@ember/component";
export default Component.extend({
didInsertElement() {
this._super(...arguments);
$("body").addClass("admin-interface");
},
willDestroyElement() {
this._super(...arguments);
$("body").removeClass("admin-interface");
},
});