From 51d81dea9fe2a674252478c214d65dbaa2e2424b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 13 Mar 2017 23:31:01 -0400 Subject: [PATCH] manage user type --- .../organizationPeopleEditController.js | 3 +++ .../organizationPeopleInviteController.js | 1 + .../views/organizationPeopleEdit.html | 27 ++++++++++++++++--- .../views/organizationPeopleInvite.html | 24 +++++++++++++++-- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/src/app/organization/organizationPeopleEditController.js b/src/app/organization/organizationPeopleEditController.js index 589c261d68..270858e538 100644 --- a/src/app/organization/organizationPeopleEditController.js +++ b/src/app/organization/organizationPeopleEditController.js @@ -22,6 +22,8 @@ }; } } + $scope.email = user.Email; + $scope.type = user.Type; $scope.selectedSubvaults = subvaults; }); }); @@ -76,6 +78,7 @@ } apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, { + type: $scope.type, subvaults: subvaults }, function () { $uibModalInstance.close(); diff --git a/src/app/organization/organizationPeopleInviteController.js b/src/app/organization/organizationPeopleInviteController.js index 169d5ee6d9..67cb91ae33 100644 --- a/src/app/organization/organizationPeopleInviteController.js +++ b/src/app/organization/organizationPeopleInviteController.js @@ -64,6 +64,7 @@ apiService.organizationUsers.invite({ orgId: $state.params.orgId }, { email: model.email, + type: model.type, subvaults: subvaults }, function () { $uibModalInstance.close(); diff --git a/src/app/organization/views/organizationPeopleEdit.html b/src/app/organization/views/organizationPeopleEdit.html index 5510151355..671081c166 100644 --- a/src/app/organization/views/organizationPeopleEdit.html +++ b/src/app/organization/views/organizationPeopleEdit.html @@ -1,9 +1,30 @@