mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 01:42:47 +08: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
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue