mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Only show admin wrench when there are actions on mobile
Corrects typo in logic from b725252cd0
This commit is contained in:
parent
a4a0d12b39
commit
c7a74e574f
@ -45,9 +45,8 @@ createWidget("topic-admin-menu-button", {
|
||||
|
||||
// We don't show the button when expanded on the right side on desktop
|
||||
if (
|
||||
(menu.attrs.actionButtons.length &&
|
||||
!(attrs.rightSide && state.expanded)) ||
|
||||
this.site.mobileView
|
||||
menu.attrs.actionButtons.length &&
|
||||
(!(attrs.rightSide && state.expanded) || this.site.mobileView)
|
||||
) {
|
||||
result.push(
|
||||
this.attach("button", {
|
||||
|
Loading…
Reference in New Issue
Block a user