mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
conditionally show groups option
This commit is contained in:
parent
dce609d141
commit
eb7fd4a015
@ -1,11 +1,20 @@
|
||||
angular
|
||||
.module('bit.organization')
|
||||
|
||||
.controller('organizationPeopleController', function ($scope, $state, $uibModal, cryptoService, apiService,
|
||||
.controller('organizationPeopleController', function ($scope, $state, $uibModal, cryptoService, apiService, authService,
|
||||
toastr, $analytics) {
|
||||
$scope.users = [];
|
||||
$scope.useGroups = false;
|
||||
|
||||
$scope.$on('$viewContentLoaded', function () {
|
||||
loadList();
|
||||
|
||||
authService.getUserProfile().then(function (profile) {
|
||||
if (profile.organizations) {
|
||||
var org = profile.organizations[$state.params.orgId];
|
||||
$scope.useGroups = !!org.useGroups;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$scope.reinvite = function (user) {
|
||||
@ -97,7 +106,7 @@
|
||||
});
|
||||
|
||||
modal.result.then(function () {
|
||||
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" ng-click="groups(user)">
|
||||
<a href="javascript:void(0)" ng-click="groups(user)" ng-if="useGroups">
|
||||
<i class="fa fa-fw fa-sitemap"></i> Groups
|
||||
</a>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user