A platform for community discussion. Free, open, simple.
FIX: Only show admin wrench when there are actions on mobile
David Taylorc7a74e574f09
diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6index 48c8f7d5164..e5c81386732 100644--- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6+++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6@@ -45,9 +45,8 @@ createWidget("topic-admin-menu-button", {// We don't show the button when expanded on the right side on desktopif (- (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", {