Merge pull request #5743 from cobbspur/invitations

Fix wording for failed invitations alert
This commit is contained in:
Hannah Wolfe 2015-08-28 11:54:00 +01:00
commit 1ac7d2a348

View File

@ -167,7 +167,8 @@ export default Ember.Controller.extend({
});
if (erroredEmails.length > 0) {
message = 'Failed to send ' + erroredEmails.length + ' invitations: ';
invitationsString = erroredEmails.length > 1 ? ' invitations: ' : ' invitation: ';
message = 'Failed to send ' + erroredEmails.length + invitationsString;
message += erroredEmails.join(', ');
notifications.showAlert(message, {type: 'error', delayed: successCount > 0});
}