mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
28 lines
752 B
JavaScript
28 lines
752 B
JavaScript
export default Ember.Component.extend({
|
|
layoutName: 'components/private-message-map',
|
|
tagName: 'section',
|
|
classNames: ['information'],
|
|
details: Em.computed.alias('topic.details'),
|
|
|
|
actions: {
|
|
removeAllowedUser: function(user) {
|
|
var self = this;
|
|
bootbox.dialog(I18n.t("private_message_info.remove_allowed_user", {name: user.get('username')}), [
|
|
{label: I18n.t("no_value"),
|
|
'class': 'btn-danger right'},
|
|
{label: I18n.t("yes_value"),
|
|
'class': 'btn-primary',
|
|
callback: function() {
|
|
self.get('topic.details').removeAllowedUser(user);
|
|
}
|
|
}
|
|
]);
|
|
},
|
|
|
|
showPrivateInvite: function() {
|
|
this.sendAction('showPrivateInviteAction');
|
|
}
|
|
}
|
|
|
|
});
|