mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:02:46 +08:00
FIX: Remove duplicate user menu for old header implementation (#27002)
Some of the old (pre-dag) header logic was accidently re-introduced as part of 9bcbfbba43
(presumably by mistake while resolving a merge conflict). This causes sites on the old header implementation to end up with duplicate user menu icons.
This commit is contained in:
parent
1c26fe892a
commit
48580de30e
|
@ -289,16 +289,6 @@ createWidget("header-icons", {
|
|||
}
|
||||
});
|
||||
|
||||
if (attrs.user) {
|
||||
icons.push(
|
||||
this.attach("user-dropdown", {
|
||||
active: attrs.userVisible,
|
||||
action: "toggleUserMenu",
|
||||
user: attrs.user,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
return icons;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user