diff --git a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs index fa8fe109f89..c1c93589ffd 100644 --- a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs +++ b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.hbs @@ -59,7 +59,22 @@ {{/each}} {{#if this.site.mobileView}} - {{#if this.dropdownButtons}} + {{#if this.loneDropdownButton}} + + {{else if (gt this.dropdownButtons.length 1)}} button.dropdown); } + @discourseComputed("dropdownButtons.[]") + loneDropdownButton(dropdownButtons) { + return dropdownButtons.length === 1 ? dropdownButtons[0] : null; + } + @discourseComputed("topic.isPrivateMessage") showNotificationsButton(isPM) { return !isPM || this.canSendPms;