FIX: check for confirm value before removing user from PM

This commit is contained in:
Arpit Jalan 2016-04-04 11:54:52 +05:30
parent 4c855047c1
commit 0e02d24428

View File

@ -20,9 +20,9 @@ createWidget('pm-remove-link', {
},
click() {
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}),
() => this.sendWidgetAction('removeAllowedUser', this.attrs)
);
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}), (confirmed) => {
if (confirmed) { this.sendWidgetAction('removeAllowedUser', this.attrs); }
});
}
});