mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Organization profile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user