mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add staff class to HTML body for staff
This commit is contained in:
@@ -47,6 +47,12 @@ const SiteHeaderComponent = MountWidget.extend(Docking, {
|
|||||||
this.queueRerender();
|
this.queueRerender();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
willRender() {
|
||||||
|
if (this.get('currentUser.staff')) {
|
||||||
|
$('body').addClass('staff');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this._super();
|
this._super();
|
||||||
$(window).on('resize.discourse-menu-panel', () => this.afterRender());
|
$(window).on('resize.discourse-menu-panel', () => this.afterRender());
|
||||||
|
|||||||
Reference in New Issue
Block a user