mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
FIX: Missing Private message topic map
This commit is contained in:
parent
08ad5d479e
commit
fa0b5d3b0e
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
The topic map underneath the first post of a topic.
|
||||
|
||||
@class DiscourseTopicMapComponent
|
||||
@class TopicMapComponent
|
||||
@extends Ember.Component
|
||||
@namespace Discourse
|
||||
@module Discourse
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
var LINKS_SHOWN = 5;
|
||||
|
||||
Discourse.DiscourseTopicMapComponent = Ember.Component.extend({
|
||||
Discourse.TopicMapComponent = Ember.Component.extend({
|
||||
mapCollapsed: true,
|
||||
templateName: 'components/topic-map',
|
||||
details: Em.computed.alias('topic.details'),
|
||||
|
|
|
@ -24,7 +24,7 @@ Discourse.TopicMapContainerView = Discourse.ContainerView.extend({
|
|||
this._super();
|
||||
if (this.get('hidden')) return;
|
||||
|
||||
this.attachViewWithArgs({ topic: this.get('topic') }, Discourse.DiscourseTopicMapComponent);
|
||||
this.attachViewWithArgs({ topic: this.get('topic') }, Discourse.TopicMapComponent);
|
||||
this.trigger('appendMapInformation', this);
|
||||
},
|
||||
|
||||
|
@ -33,12 +33,12 @@ Discourse.TopicMapContainerView = Discourse.ContainerView.extend({
|
|||
|
||||
// If we have a summary capability
|
||||
if (topic.get('has_summary')) {
|
||||
container.attachViewWithArgs({ topic: topic }, Discourse.DiscourseToggleSummaryComponent);
|
||||
container.attachViewWithArgs({ topic: topic }, Discourse.ToggleSummaryComponent);
|
||||
}
|
||||
|
||||
// If we have a private message
|
||||
if (this.get('topic.isPrivateMessage')) {
|
||||
container.attachViewWithArgs({ topic: topic, showPrivateInviteAction: 'showPrivateInvite' }, Discourse.DiscoursePrivateMessageMapComponent);
|
||||
container.attachViewWithArgs({ topic: topic, showPrivateInviteAction: 'showPrivateInvite' }, Discourse.PrivateMessageMapComponent);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue