mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:28:59 +08:00
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
Block a user