mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 04:38:52 +08:00
FIX: shows invite panel on mobile from topic footer buttons (#7080)
This commit is contained in:
@ -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",
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user