mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
add header cloak after all panels are added (#7325)
This commit is contained in:
parent
0744d2ef73
commit
6f1652bb53
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user