FEATURE: ask for confirmation before resending all invites

This commit is contained in:
Arpit Jalan 2017-05-11 17:57:45 +05:30
parent ce9fe213fd
commit f4b2677a19
2 changed files with 8 additions and 3 deletions

View File

@ -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() {

View File

@ -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"