From c7a74e574f09652452bdf2fe77f09e7dcd22224f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 31 Dec 2019 12:35:44 +0000 Subject: [PATCH] FIX: Only show admin wrench when there are actions on mobile Corrects typo in logic from b725252cd0c60d17521499d70f021cfde2114ccf --- .../javascripts/discourse/widgets/topic-admin-menu.js.es6 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 index 48c8f7d516..e5c8138673 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 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", {