FIX: Only show admin wrench when there are actions on mobile

Corrects typo in logic from b725252cd0
This commit is contained in:
David Taylor 2019-12-31 12:35:44 +00:00
parent a4a0d12b39
commit c7a74e574f

View File

@ -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", {