From 51edf80e48d08620a309f44bc9572b0bb9a66839 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 18 May 2017 12:19:49 -0400 Subject: [PATCH] allow bulk invite CSV list of email addresses --- src/app/organization/organizationPeopleInviteController.js | 4 +++- src/app/organization/views/organizationPeopleInvite.html | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/organization/organizationPeopleInviteController.js b/src/app/organization/organizationPeopleInviteController.js index d41c6c6625..80114e8261 100644 --- a/src/app/organization/organizationPeopleInviteController.js +++ b/src/app/organization/organizationPeopleInviteController.js @@ -72,8 +72,10 @@ } } + var splitEmails = model.emails.trim().split(/\s*,\s*/); + $scope.submitPromise = apiService.organizationUsers.invite({ orgId: $state.params.orgId }, { - email: model.email, + emails: splitEmails, type: model.type, collections: collections, accessAll: model.accessAll diff --git a/src/app/organization/views/organizationPeopleInvite.html b/src/app/organization/views/organizationPeopleInvite.html index 0c34af9799..d67d28fa03 100644 --- a/src/app/organization/views/organizationPeopleInvite.html +++ b/src/app/organization/views/organizationPeopleInvite.html @@ -15,8 +15,9 @@
- - + + +

You can invite up to 20 users at a time by comma separating a list of email addresses.

User Type