remove fake loading of user groups

This commit is contained in:
Mads Rasmussen
2017-06-14 12:52:12 +02:00
parent 89dcb6a0e2
commit cd8418a8c0

View File

@@ -12,19 +12,15 @@
vm.clearSelection = clearSelection;
vm.selectUserGroup = selectUserGroup;
function init() {
function onInit() {
vm.loading = true;
// Get users
usersResource.getUserGroups().then(function (userGroups) {
vm.userGroups = userGroups;
});
// fake loading
$timeout(function () {
vm.loading = false;
}, 500);
});
}
@@ -50,7 +46,7 @@
$location.path('users/users/group/' + userGroup.id);
}
init();
onInit();
}