diff --git a/src/app/settings/views/settings.html b/src/app/settings/views/settings.html index b1a7fdad97..18deb51e9d 100644 --- a/src/app/settings/views/settings.html +++ b/src/app/settings/views/settings.html @@ -109,6 +109,31 @@ +
+
+

Organizations

+
+
+
+ + + + + + + + + + + + + + + +
NamePlan
sdfsdfdfd
+
+
+

Danger Zone

diff --git a/src/app/vault/vaultController.js b/src/app/vault/vaultController.js index 4d76a062ba..39cd8cce26 100644 --- a/src/app/vault/vaultController.js +++ b/src/app/vault/vaultController.js @@ -163,20 +163,4 @@ var logins = $filter('filter')($scope.logins, { folderId: folder.id }); return logins.length === 0; }; - - $scope.shareLogin = function (login) { - var shareModel = $uibModal.open({ - animation: true, - templateUrl: 'app/vault/views/vaultShareLogin.html', - controller: 'vaultShareLoginController', - size: 'lg', - resolve: { - id: function () { return login.id; } - } - }); - - shareModel.result.then(function (result) { - - }); - }; }); diff --git a/src/app/vault/vaultShareLoginController.js b/src/app/vault/vaultShareLoginController.js deleted file mode 100644 index d72d4ba97a..0000000000 --- a/src/app/vault/vaultShareLoginController.js +++ /dev/null @@ -1,33 +0,0 @@ -angular - .module('bit.vault') - - .controller('vaultShareLoginController', function ($scope, apiService, $uibModalInstance, cryptoService, cipherService, - id, $analytics) { - $analytics.eventTrack('vaultShareLoginController', { category: 'Modal' }); - - apiService.logins.get({ - id: id - }, function (login) { - $scope.login = cipherService.decryptLogin(login); - }); - - $scope.enablePromise = null; - $scope.enable = function () { - var shareKey = cryptoService.makeShareKey(); - var encLogin = cipherService.encryptLogin($scope.login, shareKey); - encLogin.key = cryptoService.rsaEncrypt(shareKey); - - $scope.enablePromise = apiService.logins.put({ id: $scope.login.id }, encLogin, function (login) { - $scope.login = cipherService.decryptLogin(login); - }).$promise; - }; - - $scope.sharePromise = null; - $scope.share = function () { - $uibModalInstance.close({}); - }; - - $scope.close = function () { - $uibModalInstance.dismiss('cancel'); - }; - }); diff --git a/src/app/vault/views/vault.html b/src/app/vault/views/vault.html index 89f455efc7..e7d7f5ccb2 100644 --- a/src/app/vault/views/vault.html +++ b/src/app/vault/views/vault.html @@ -47,7 +47,7 @@ - + @@ -64,10 +64,6 @@ uib-tooltip="View/Edit"> -
Name Username
diff --git a/src/app/vault/views/vaultShareLogin.html b/src/app/vault/views/vaultShareLogin.html deleted file mode 100644 index 4d2aebd73f..0000000000 --- a/src/app/vault/views/vaultShareLogin.html +++ /dev/null @@ -1,57 +0,0 @@ - -
- - -
-
- - -
\ No newline at end of file diff --git a/src/app/views/backendLayout.html b/src/app/views/backendLayout.html index 1feaccd06d..8b48a76a51 100644 --- a/src/app/views/backendLayout.html +++ b/src/app/views/backendLayout.html @@ -60,7 +60,7 @@ ng-class="{active: $state.is('backend.shared') || $state.is('backend.sharedMe')}"> beta - Sharing Center + Sharing Center