mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:34:13 -06:00
FEATURE: Add admin-area
class to HTML tag (#12459)
This commit is contained in:
parent
942ee1e218
commit
9526c1a27b
@ -2,11 +2,13 @@ import Component from "@ember/component";
|
||||
export default Component.extend({
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
$("body").addClass("admin-interface");
|
||||
document.querySelector("html").classList.add("admin-area");
|
||||
document.querySelector("body").classList.add("admin-interface");
|
||||
},
|
||||
|
||||
willDestroyElement() {
|
||||
this._super(...arguments);
|
||||
$("body").removeClass("admin-interface");
|
||||
document.querySelector("html").classList.remove("admin-area");
|
||||
document.querySelector("body").classList.remove("admin-interface");
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user