Better loading state for the repo-list page
This commit is contained in:
parent
2933aa3272
commit
6b9258ef67
2 changed files with 13 additions and 4 deletions
|
@ -21,10 +21,12 @@
|
|||
$scope.page = 1;
|
||||
$scope.publicPageCount = null;
|
||||
$scope.allRepositories = {};
|
||||
$scope.loading = true;
|
||||
|
||||
// When loading the UserService, if the user is logged in, create a list of
|
||||
// relevant namespaces and collect the relevant repositories.
|
||||
UserService.updateUserIn($scope, function(user) {
|
||||
$scope.loading = false;
|
||||
if (!user.anonymous) {
|
||||
// Add our user to our list of namespaces.
|
||||
$scope.namespaces = [{
|
||||
|
|
Reference in a new issue