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

notes about sharing

This commit is contained in:
Kyle Spearrin
2017-04-11 17:29:45 -04:00
parent d619167c02
commit 5f130bdda7
4 changed files with 71 additions and 41 deletions

View File

@@ -1,7 +1,8 @@
angular
.module('bit.vault')
.controller('vaultShareController', function ($scope, apiService, $uibModalInstance, authService, cipherService, loginId, $analytics) {
.controller('vaultShareController', function ($scope, apiService, $uibModalInstance, authService, cipherService,
loginId, $analytics, $state) {
$analytics.eventTrack('vaultShareController', { category: 'Modal' });
$scope.model = {};
$scope.login = {};
@@ -30,7 +31,7 @@
setFirstOrg = false;
for (var i in profile.organizations) {
if (profile.organizations.hasOwnProperty(i)) {
if (profile.organizations.hasOwnProperty(i) && profile.organizations[i].enabled) {
orgs.push({
id: profile.organizations[i].id,
name: profile.organizations[i].name
@@ -111,4 +112,10 @@
$scope.close = function () {
$uibModalInstance.dismiss('cancel');
};
$scope.createOrg = function () {
$state.go('backend.user.settingsCreateOrg').then(function () {
$uibModalInstance.dismiss('cancel');
});
};
});