From 309c73a9726a90c6d2045c142783e57fb64f1e78 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 14 Apr 2017 23:36:11 -0400 Subject: [PATCH] update org after share --- src/app/vault/vaultController.js | 4 ++-- src/app/vault/vaultShareController.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/vault/vaultController.js b/src/app/vault/vaultController.js index eeb6947bf7..df6fb77139 100644 --- a/src/app/vault/vaultController.js +++ b/src/app/vault/vaultController.js @@ -269,8 +269,8 @@ } }); - modal.result.then(function () { - + modal.result.then(function (orgId) { + login.organizationId = orgId; }); }; diff --git a/src/app/vault/vaultShareController.js b/src/app/vault/vaultShareController.js index fd4d4540cd..98c5498e39 100644 --- a/src/app/vault/vaultShareController.js +++ b/src/app/vault/vaultShareController.js @@ -105,7 +105,7 @@ $scope.submitPromise = apiService.ciphers.putShare({ id: loginId }, request, function (response) { $analytics.eventTrack('Shared Login'); - $uibModalInstance.close(); + $uibModalInstance.close(model.organizationId); }).$promise; };