mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
FEATURE: ask for confirmation before resending all invites
This commit is contained in:
parent
ce9fe213fd
commit
f4b2677a19
@ -93,9 +93,13 @@ export default Ember.Controller.extend({
|
||||
|
||||
reinviteAll() {
|
||||
const self = this;
|
||||
Invite.reinviteAll().then(function() {
|
||||
self.set('reinvitedAll', true);
|
||||
}).catch(popupAjaxError);
|
||||
bootbox.confirm(I18n.t("user.invited.reinvite_all_confirm"), confirm => {
|
||||
if (confirm) {
|
||||
Invite.reinviteAll().then(function() {
|
||||
self.set('reinvitedAll', true);
|
||||
}).catch(popupAjaxError);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
loadMore() {
|
||||
|
@ -840,6 +840,7 @@ en:
|
||||
rescinded: "Invite removed"
|
||||
reinvite: "Resend Invite"
|
||||
reinvite_all: "Resend all Invites"
|
||||
reinvite_all_confirm: "Are you sure you want to resend all invites?"
|
||||
reinvited: "Invite re-sent"
|
||||
reinvited_all: "All Invites re-sent!"
|
||||
time_read: "Read Time"
|
||||
|
Loading…
x
Reference in New Issue
Block a user