mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:35:31 +08:00
15 lines
473 B
JavaScript
15 lines
473 B
JavaScript
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");
|
|
},
|
|
});
|