2019-10-24 00:30:52 +08:00
|
|
|
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
2017-05-05 03:13:32 +08:00
|
|
|
didInsertElement() {
|
2019-01-19 17:05:51 +08:00
|
|
|
this._super(...arguments);
|
2021-03-22 08:36:26 +08:00
|
|
|
document.querySelector("html").classList.add("admin-area");
|
|
|
|
document.querySelector("body").classList.add("admin-interface");
|
2017-05-05 03:13:32 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
willDestroyElement() {
|
2019-01-19 17:05:51 +08:00
|
|
|
this._super(...arguments);
|
2021-03-22 08:36:26 +08:00
|
|
|
document.querySelector("html").classList.remove("admin-area");
|
|
|
|
document.querySelector("body").classList.remove("admin-interface");
|
2017-05-05 03:13:32 +08:00
|
|
|
},
|
|
|
|
});
|