mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:54:31 +08:00
FIX: check for confirm value before removing user from PM
This commit is contained in:
parent
4c855047c1
commit
0e02d24428
|
@ -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); }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user