From 187944bd3a1587823556e1fab7e945838e536c67 Mon Sep 17 00:00:00 2001 From: cobbspur Date: Thu, 27 Aug 2015 18:17:13 +0100 Subject: [PATCH] Fix wording for failed invitations alert refs #5652 - Use conditional string for single/plural failed invitations --- core/client/app/controllers/setup/three.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/client/app/controllers/setup/three.js b/core/client/app/controllers/setup/three.js index 0fef0a3bab..b2409c1622 100644 --- a/core/client/app/controllers/setup/three.js +++ b/core/client/app/controllers/setup/three.js @@ -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}); }