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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
473 B
JavaScript
Raw Normal View History

import Component from "@ember/component";
export default Component.extend({
didInsertElement() {
this._super(...arguments);
document.querySelector("html").classList.add("admin-area");
document.querySelector("body").classList.add("admin-interface");
},
willDestroyElement() {
this._super(...arguments);
document.querySelector("html").classList.remove("admin-area");
document.querySelector("body").classList.remove("admin-interface");
},
});