mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00: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() {
|
click() {
|
||||||
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}),
|
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}), (confirmed) => {
|
||||||
() => this.sendWidgetAction('removeAllowedUser', this.attrs)
|
if (confirmed) { this.sendWidgetAction('removeAllowedUser', this.attrs); }
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user