1
0
mirror of https://github.com/bitwarden/web synced 2026-01-06 18:43:18 +00:00

do api calls on viewContentLoaded

This commit is contained in:
Kyle Spearrin
2017-03-07 00:36:27 -05:00
parent 22299c03cd
commit 3d273f041e
4 changed files with 47 additions and 40 deletions

View File

@@ -3,7 +3,9 @@
.controller('organizationPeopleController', function ($scope, $state, $uibModal, cryptoService, apiService, toastr) {
$scope.users = [];
loadList();
$scope.$on('$viewContentLoaded', function () {
loadList();
});
$scope.confirm = function (user) {
apiService.users.getPublicKey({ id: user.userId }, function (userKey) {