Better loading state for the repo-list page

This commit is contained in:
Joseph Schorr 2015-03-05 16:17:18 -05:00
parent 2933aa3272
commit 6b9258ef67
2 changed files with 13 additions and 4 deletions

View file

@ -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 = [{