1
0
mirror of https://github.com/bitwarden/web synced 2025-12-23 19:53:16 +00:00

modal UI for sharing folders/logins from vault

This commit is contained in:
Kyle Spearrin
2017-02-25 22:38:30 -05:00
parent 642b35582f
commit afaaf7d73a
5 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
angular
.module('bit.vault')
.controller('vaultShareController', function ($scope, apiService, $uibModalInstance, cryptoService, cipherService,
id, name, isFolder, $analytics) {
$analytics.eventTrack('vaultShareController', { category: 'Modal' });
$scope.cipher = {
id: id,
name: name,
isFolder: isFolder
};
$scope.savePromise = null;
$scope.save = function (model) {
$uibModalInstance.close({});
};
$scope.close = function () {
$uibModalInstance.dismiss('cancel');
};
});