mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
groups pages
This commit is contained in:
parent
ede10677f9
commit
180101400f
@ -155,6 +155,12 @@ angular
|
||||
controller: 'organizationVaultController',
|
||||
data: { pageTitle: 'Organization Vault' }
|
||||
})
|
||||
.state('backend.org.groups', {
|
||||
url: '/organization/:orgId/groups',
|
||||
templateUrl: 'app/organization/views/organizationGroups.html',
|
||||
controller: 'organizationGroupsController',
|
||||
data: { pageTitle: 'Organization Groups' }
|
||||
})
|
||||
|
||||
// Frontend
|
||||
.state('frontend', {
|
||||
|
6
src/app/organization/organizationGroupsController.js
Normal file
6
src/app/organization/organizationGroupsController.js
Normal file
@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.organization')
|
||||
|
||||
.controller('organizationGroupsController', function ($scope, $state) {
|
||||
|
||||
});
|
@ -45,7 +45,21 @@
|
||||
templateUrl: 'app/organization/views/organizationSubvaultsUsers.html',
|
||||
controller: 'organizationSubvaultsUsersController',
|
||||
size: 'lg',
|
||||
windowClass: 'organizationSubvaultsUsersModal',
|
||||
resolve: {
|
||||
subvault: function () { return subvault; }
|
||||
}
|
||||
});
|
||||
|
||||
modal.result.then(function () {
|
||||
// nothing to do
|
||||
});
|
||||
};
|
||||
|
||||
$scope.groups = function (subvault) {
|
||||
var modal = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: 'app/organization/views/organizationSubvaultsGroups.html',
|
||||
controller: 'organizationSubvaultsGroupsController',
|
||||
resolve: {
|
||||
subvault: function () { return subvault; }
|
||||
}
|
||||
|
@ -0,0 +1,10 @@
|
||||
angular
|
||||
.module('bit.organization')
|
||||
|
||||
.controller('organizationSubvaultsGroupsController', function ($scope, $state, $uibModalInstance, subvault) {
|
||||
$scope.subvault = subvault;
|
||||
|
||||
$scope.close = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
});
|
@ -8,8 +8,6 @@
|
||||
$scope.users = [];
|
||||
|
||||
$uibModalInstance.opened.then(function () {
|
||||
$scope.modalWindow = angular.element(document).find('.organizationSubvaultsUsersModal');
|
||||
|
||||
$scope.loading = false;
|
||||
apiService.subvaultUsers.listSubvault(
|
||||
{
|
||||
|
16
src/app/organization/views/organizationGroups.html
Normal file
16
src/app/organization/views/organizationGroups.html
Normal file
@ -0,0 +1,16 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Groups
|
||||
<small>organize your users</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Coming soon...</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<p>Groups are coming soon to bitwarden Enterprise organizations.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -48,6 +48,11 @@
|
||||
<i class="fa fa-fw fa-users"></i> Users
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" ng-click="groups(subvault)">
|
||||
<i class="fa fa-fw fa-sitemap"></i> Groups
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" ng-click="delete(subvault)" class="text-red">
|
||||
<i class="fa fa-fw fa-trash"></i> Delete
|
||||
|
10
src/app/organization/views/organizationSubvaultsGroups.html
Normal file
10
src/app/organization/views/organizationSubvaultsGroups.html
Normal file
@ -0,0 +1,10 @@
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title"><i class="fa fa-sitemap"></i> Groups <small>{{subvault.name}}</small></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Groups are coming soon to bitwarden Enterprise organizations.
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default btn-flat" ng-click="close()">Close</button>
|
||||
</div>
|
@ -36,11 +36,6 @@
|
||||
<i class="fa fa-dashboard fa-fw"></i> <span>Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $state.is('backend.org.people')}">
|
||||
<a ui-sref="backend.org.people({orgId: params.orgId})">
|
||||
<i class="fa fa-users fa-fw"></i> <span>People</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $state.is('backend.org.vault')}">
|
||||
<a ui-sref="backend.org.vault({orgId: params.orgId})">
|
||||
<i class="fa fa-lock fa-fw"></i> <span>Vault</span>
|
||||
@ -51,6 +46,16 @@
|
||||
<i class="fa fa-share-alt fa-fw"></i> <span>Subvaults</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $state.is('backend.org.people')}">
|
||||
<a ui-sref="backend.org.people({orgId: params.orgId})">
|
||||
<i class="fa fa-users fa-fw"></i> <span>People</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $state.is('backend.org.groups')}">
|
||||
<a ui-sref="backend.org.groups({orgId: params.orgId})">
|
||||
<i class="fa fa-sitemap fa-fw"></i> <span>Groups</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $state.is('backend.org.billing')}" ng-if="isOrgOwner(orgProfile)">
|
||||
<a ui-sref="backend.org.billing({orgId: params.orgId})">
|
||||
<i class="fa fa-credit-card fa-fw"></i> <span>Billing</span>
|
||||
|
@ -146,6 +146,8 @@
|
||||
<script src="app/organization/organizationBillingChangePlanController.js"></script>
|
||||
<script src="app/organization/organizationVaultController.js"></script>
|
||||
<script src="app/organization/organizationVaultLoginSubvaultsController.js"></script>
|
||||
<script src="app/organization/organizationGroupsController.js"></script>
|
||||
<script src="app/organization/organizationSubvaultsGroupsController.js"></script>
|
||||
|
||||
<script src="app/settings/settingsModule.js"></script>
|
||||
<script src="app/settings/settingsController.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user