mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:12:45 +08:00
FIX: shows invite panel on mobile from topic footer buttons (#7080)
This commit is contained in:
parent
6296554ed1
commit
883a18547e
|
@ -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",
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user