mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-22 17:41:55 +08:00
This conversion was achieved using the ember-native-class-codemod, plus a handful of manual fixes/tweaks
15 lines
514 B
JavaScript
Vendored
15 lines
514 B
JavaScript
Vendored
import Component from "@ember/component";
|
|
|
|
export default class AdminWrapper extends Component {
|
|
didInsertElement() {
|
|
super.didInsertElement(...arguments);
|
|
document.querySelector("html").classList.add("admin-area");
|
|
document.querySelector("body").classList.add("admin-interface");
|
|
}
|
|
|
|
willDestroyElement() {
|
|
super.willDestroyElement(...arguments);
|
|
document.querySelector("html").classList.remove("admin-area");
|
|
document.querySelector("body").classList.remove("admin-interface");
|
|
}
|
|
}
|