FIX: Missing Private message topic map

This commit is contained in:
Robin Ward 2013-11-19 18:59:29 -05:00
parent 08ad5d479e
commit fa0b5d3b0e
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
/** /**
The topic map underneath the first post of a topic. The topic map underneath the first post of a topic.
@class DiscourseTopicMapComponent @class TopicMapComponent
@extends Ember.Component @extends Ember.Component
@namespace Discourse @namespace Discourse
@module Discourse @module Discourse
@ -9,7 +9,7 @@
var LINKS_SHOWN = 5; var LINKS_SHOWN = 5;
Discourse.DiscourseTopicMapComponent = Ember.Component.extend({ Discourse.TopicMapComponent = Ember.Component.extend({
mapCollapsed: true, mapCollapsed: true,
templateName: 'components/topic-map', templateName: 'components/topic-map',
details: Em.computed.alias('topic.details'), details: Em.computed.alias('topic.details'),

View file

@ -24,7 +24,7 @@ Discourse.TopicMapContainerView = Discourse.ContainerView.extend({
this._super(); this._super();
if (this.get('hidden')) return; 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); this.trigger('appendMapInformation', this);
}, },
@ -33,12 +33,12 @@ Discourse.TopicMapContainerView = Discourse.ContainerView.extend({
// If we have a summary capability // If we have a summary capability
if (topic.get('has_summary')) { if (topic.get('has_summary')) {
container.attachViewWithArgs({ topic: topic }, Discourse.DiscourseToggleSummaryComponent); container.attachViewWithArgs({ topic: topic }, Discourse.ToggleSummaryComponent);
} }
// If we have a private message // If we have a private message
if (this.get('topic.isPrivateMessage')) { if (this.get('topic.isPrivateMessage')) {
container.attachViewWithArgs({ topic: topic, showPrivateInviteAction: 'showPrivateInvite' }, Discourse.DiscoursePrivateMessageMapComponent); container.attachViewWithArgs({ topic: topic, showPrivateInviteAction: 'showPrivateInvite' }, Discourse.PrivateMessageMapComponent);
} }
} }
}); });