FEATURE: add `staff` class to HTML body for staff

This commit is contained in:
Sam 2016-12-15 16:23:03 +11:00
parent 98f4a2adcb
commit 162413862c
1 changed files with 6 additions and 0 deletions

View File

@ -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());