mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add header cloak after all panels are added (#7325)
This commit is contained in:
@@ -327,9 +327,6 @@ export default createWidget("header", {
|
||||
} else if (state.userVisible) {
|
||||
panels.push(this.attach("user-menu"));
|
||||
}
|
||||
if (this.site.mobileView) {
|
||||
panels.push(this.attach("header-cloak"));
|
||||
}
|
||||
|
||||
additionalPanels.map(panel => {
|
||||
if (this.state[panel.toggle]) {
|
||||
@@ -342,6 +339,10 @@ export default createWidget("header", {
|
||||
}
|
||||
});
|
||||
|
||||
if (this.site.mobileView) {
|
||||
panels.push(this.attach("header-cloak"));
|
||||
}
|
||||
|
||||
return panels;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user