FIX: shows invite panel on mobile from topic footer buttons (#7080)

FIX: shows invite panel on mobile from topic footer buttons (#7080)

diff --git a/app/assets/javascripts/discourse/components/topic-footer-buttons.js.es6 b/app/assets/javascripts/discourse/components/topic-footer-buttons.js.es6
index a46a9a5..a92f22b 100644
--- a/app/assets/javascripts/discourse/components/topic-footer-buttons.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-footer-buttons.js.es6
@@ -30,10 +30,7 @@ export default Ember.Component.extend({
     return !isPM || this.siteSettings.enable_personal_messages;
   },
 
-  @computed("topic.details.can_invite_to")
-  canInviteTo(result) {
-    return !this.site.mobileView && result;
-  },
+  canInviteTo: Ember.computed.alias("topic.details.can_invite_to"),
 
   inviteDisabled: Ember.computed.or(
     "topic.archived",
diff --git a/test/javascripts/acceptance/share-and-invite-mobile-test.js.es6 b/test/javascripts/acceptance/share-and-invite-mobile-test.js.es6
index 561ab00..9ab9c76 100644
--- a/test/javascripts/acceptance/share-and-invite-mobile-test.js.es6
+++ b/test/javascripts/acceptance/share-and-invite-mobile-test.js.es6
@@ -30,8 +30,8 @@ QUnit.test("Topic footer mobile button", async assert => {
   );
 
   assert.ok(
-    !exists(".share-and-invite.modal .modal-tab.invite"),
-    "it doesn’t show the invite tab"
+    exists(".share-and-invite.modal .modal-tab.invite"),
+    "it shows the invite tab"
   );
 
   assert.equal(

GitHub sha: 883a1854