FEATURE: add `staff` class to HTML body for staff
This commit is contained in:
parent
98f4a2adcb
commit
162413862c
|
@ -47,6 +47,12 @@ const SiteHeaderComponent = MountWidget.extend(Docking, {
|
|||
this.queueRerender();
|
||||
},
|
||||
|
||||
willRender() {
|
||||
if (this.get('currentUser.staff')) {
|
||||
$('body').addClass('staff');
|
||||
}
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
$(window).on('resize.discourse-menu-panel', () => this.afterRender());
|
||||
|
|
Loading…
Reference in New Issue