diff --git a/app/assets/javascripts/discourse/components/private_message_map_component.js b/app/assets/javascripts/discourse/components/private_message_map_component.js index fc87446af..ec4e3d3bb 100644 --- a/app/assets/javascripts/discourse/components/private_message_map_component.js +++ b/app/assets/javascripts/discourse/components/private_message_map_component.js @@ -10,13 +10,9 @@ Discourse.PrivateMessageMapComponent = Ember.Component.extend({ templateName: 'components/private-message-map', tagName: 'section', classNames: ['information'], - postStream: Em.computed.alias('topic.postStream'), - - details: Em.computed.alias('topic.details'), actions: { removeAllowedUser: function(user) { - console.log(user); var self = this; bootbox.dialog(I18n.t("private_message_info.remove_allowed_user", {name: user.get('username')}), [ {label: I18n.t("no_value"), @@ -24,7 +20,7 @@ Discourse.PrivateMessageMapComponent = Ember.Component.extend({ {label: I18n.t("yes_value"), 'class': 'btn-primary', callback: function() { - self.get('details').removeAllowedUser(user); + self.get('topic.details').removeAllowedUser(user); } } ]); diff --git a/app/assets/javascripts/discourse/templates/components/private-message-map.js.handlebars b/app/assets/javascripts/discourse/templates/components/private-message-map.js.handlebars index e1b6dfc22..08bf7adb1 100644 --- a/app/assets/javascripts/discourse/templates/components/private-message-map.js.handlebars +++ b/app/assets/javascripts/discourse/templates/components/private-message-map.js.handlebars @@ -1,11 +1,11 @@

{{i18n private_message_info.title}}

- {{#groupedEach details.allowed_groups}} + {{#groupedEach topic.details.allowed_groups}}
#{{unbound name}}
{{/groupedEach}} - {{#groupedEach details.allowed_users}} + {{#groupedEach topic.details.allowed_users}}
{{#link-to 'user' this}} {{avatar this imageSize="small"}} @@ -13,13 +13,13 @@ {{#link-to 'user' this}} {{unbound username}} {{/link-to}} - {{#if view.details.can_remove_allowed_users}} + {{#if topic.details.can_remove_allowed_users}} {{/if}}
{{/groupedEach}}
-{{#if details.can_invite_to}} +{{#if topic.details.can_invite_to}}