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

Failed to ignore revisions in .git-blame-ignore-revs.

13 lines
289 B
JavaScript
Raw Normal View History

import Component from "@ember/component";
export default Component.extend({
didInsertElement() {
this._super(...arguments);
2018-06-15 23:03:24 +08:00
$("body").addClass("admin-interface");
},
willDestroyElement() {
this._super(...arguments);
2018-06-15 23:03:24 +08:00
$("body").removeClass("admin-interface");
}
});