1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Organization profile

This commit is contained in:
Kyle Spearrin
2017-03-02 21:51:24 -05:00
parent 492e2e693c
commit 27495d5055
5 changed files with 80 additions and 6 deletions

View File

@@ -18,6 +18,18 @@
email: user.Email,
twoFactorEnabled: user.TwoFactorEnabled
};
if (user.Organizations) {
var orgs = [];
for (var i = 0; i < user.Organizations.length; i++) {
orgs.push({
id: user.Organizations[i].Id,
name: user.Organizations[i].Name
});
}
$scope.model.organizations = orgs;
}
});
$scope.generalSave = function () {
@@ -50,6 +62,14 @@
});
};
$scope.createOrganization = function () {
$uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsCreateOrganization.html',
controller: 'settingsCreateOrganizationController'
});
};
$scope.twoFactor = function () {
var twoFactorModal = $uibModal.open({
animation: true,