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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
},
@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",

View File

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