mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: show invite button on PM footer
This commit is contained in:
parent
3a641033cb
commit
507c4ff777
@ -15,22 +15,22 @@ export default ContainerView.extend({
|
|||||||
|
|
||||||
const topic = this.get('topic');
|
const topic = this.get('topic');
|
||||||
if (!topic.get('isPrivateMessage')) {
|
if (!topic.get('isPrivateMessage')) {
|
||||||
|
|
||||||
if (mobileView) {
|
if (mobileView) {
|
||||||
this.attachViewWithArgs({ topic }, 'topic-footer-mobile-dropdown');
|
this.attachViewWithArgs({ topic }, 'topic-footer-mobile-dropdown');
|
||||||
} else {
|
} else {
|
||||||
// We hide some controls from private messages
|
// We hide some controls from private messages
|
||||||
if (this.get('topic.details.can_invite_to')) {
|
|
||||||
this.attachViewClass('invite-reply-button');
|
|
||||||
}
|
|
||||||
this.attachViewClass('bookmark-button');
|
this.attachViewClass('bookmark-button');
|
||||||
this.attachViewClass('share-button');
|
this.attachViewClass('share-button');
|
||||||
if (this.get('topic.details.can_flag_topic')) {
|
if (this.get('topic.details.can_flag_topic')) {
|
||||||
this.attachViewClass('flag-topic-button');
|
this.attachViewClass('flag-topic-button');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.get('topic.details.can_invite_to')) {
|
||||||
|
this.attachViewClass('invite-reply-button');
|
||||||
|
}
|
||||||
|
|
||||||
if (topic.get('isPrivateMessage')) {
|
if (topic.get('isPrivateMessage')) {
|
||||||
this.attachViewClass('archive-button');
|
this.attachViewClass('archive-button');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user