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 @@