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

This commit is contained in:
Joffrey JAFFEUX
2019-02-28 14:56:22 +01:00
committed by GitHub
parent 6296554ed1
commit 883a18547e
2 changed files with 3 additions and 6 deletions

View File

@ -30,10 +30,7 @@ export default Ember.Component.extend({
return !isPM || this.siteSettings.enable_personal_messages; return !isPM || this.siteSettings.enable_personal_messages;
}, },
@computed("topic.details.can_invite_to") canInviteTo: Ember.computed.alias("topic.details.can_invite_to"),
canInviteTo(result) {
return !this.site.mobileView && result;
},
inviteDisabled: Ember.computed.or( inviteDisabled: Ember.computed.or(
"topic.archived", "topic.archived",

View File

@ -30,8 +30,8 @@ QUnit.test("Topic footer mobile button", async assert => {
); );
assert.ok( assert.ok(
!exists(".share-and-invite.modal .modal-tab.invite"), exists(".share-and-invite.modal .modal-tab.invite"),
"it doesn’t show the invite tab" "it shows the invite tab"
); );
assert.equal( assert.equal(