From 543ddc048c62a10f51203abdeb52007a492a2dc9 Mon Sep 17 00:00:00 2001 From: Awa Desmoline Date: Thu, 22 Jun 2017 09:46:53 +0100 Subject: [PATCH] Fix error when inviting already invited user (#2433) * Refactor invite function to send invites only to non invited members * Refactor error message to show status code * Change the error message to use inline Alert * Clear input fields when there is error * Use Reaction's blaze inlineAlerts for error message * Eliminate console error on inviteShopMember call --- .../templates/members/memberForm.html | 1 + .../accounts/templates/members/memberForm.js | 13 +- private/data/i18n/en.json | 1 + server/methods/accounts/accounts.js | 123 +++++++++--------- 4 files changed, 71 insertions(+), 67 deletions(-) diff --git a/client/modules/accounts/templates/members/memberForm.html b/client/modules/accounts/templates/members/memberForm.html index 2d946e8e5d9..64e10414d79 100644 --- a/client/modules/accounts/templates/members/memberForm.html +++ b/client/modules/accounts/templates/members/memberForm.html @@ -1,6 +1,7 @@