From 507c4ff777015ab0660ba0f963350d3329996dc7 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sun, 17 Apr 2016 17:27:41 +0530 Subject: [PATCH] FEATURE: show invite button on PM footer --- .../discourse/views/topic-footer-main-buttons.js.es6 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/views/topic-footer-main-buttons.js.es6 b/app/assets/javascripts/discourse/views/topic-footer-main-buttons.js.es6 index ab3992ec6df..24de5d9c0bd 100644 --- a/app/assets/javascripts/discourse/views/topic-footer-main-buttons.js.es6 +++ b/app/assets/javascripts/discourse/views/topic-footer-main-buttons.js.es6 @@ -15,22 +15,22 @@ export default ContainerView.extend({ const topic = this.get('topic'); if (!topic.get('isPrivateMessage')) { - if (mobileView) { this.attachViewWithArgs({ topic }, 'topic-footer-mobile-dropdown'); } else { // We hide some controls from private messages - if (this.get('topic.details.can_invite_to')) { - this.attachViewClass('invite-reply-button'); - } this.attachViewClass('bookmark-button'); this.attachViewClass('share-button'); if (this.get('topic.details.can_flag_topic')) { this.attachViewClass('flag-topic-button'); } } - } + + if (this.get('topic.details.can_invite_to')) { + this.attachViewClass('invite-reply-button'); + } + if (topic.get('isPrivateMessage')) { this.attachViewClass('archive-button'); }