FEATURE: show invite button on PM footer

This commit is contained in:
Arpit Jalan 2016-04-17 17:27:41 +05:30
parent 3a641033cb
commit 507c4ff777
1 changed files with 5 additions and 5 deletions

View File

@ -15,22 +15,22 @@ export default ContainerView.extend({
const topic = this.get('topic');
if (!topic.get('isPrivateMessage')) {
if (mobileView) {
this.attachViewWithArgs({ topic }, 'topic-footer-mobile-dropdown');
} else {
// 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('share-button');
if (this.get('topic.details.can_flag_topic')) {
this.attachViewClass('flag-topic-button');
}
}
}
if (this.get('topic.details.can_invite_to')) {
this.attachViewClass('invite-reply-button');
}
if (topic.get('isPrivateMessage')) {
this.attachViewClass('archive-button');
}