Fix repo count checker when the user service has not yet loaded
Fixes #521
This commit is contained in:
parent
a47bfa201e
commit
1f90aa5b59
2 changed files with 1 additions and 5 deletions
|
@ -23,7 +23,7 @@ angular.module('quay').directive('repoCountChecker', function () {
|
|||
}
|
||||
|
||||
$scope.checkingPlan = true;
|
||||
$scope.isUserNamespace = UserService.isUserNamespace($scope.namespace);
|
||||
$scope.isUserNamespace = !UserService.isOrganization($scope.namespace);
|
||||
|
||||
ApiService.getPrivateAllowed($scope.isUserNamespace ? null : $scope.namespace).then(function(resp) {
|
||||
$scope.checkingPlan = false;
|
||||
|
|
|
@ -126,10 +126,6 @@ function(ApiService, CookieService, $rootScope, Config) {
|
|||
return userResponse;
|
||||
};
|
||||
|
||||
userService.isUserNamespace = function(namespace) {
|
||||
return namespace == userResponse.username;
|
||||
};
|
||||
|
||||
// Update the user in the root scope.
|
||||
userService.updateUserIn($rootScope);
|
||||
|
||||
|
|
Reference in a new issue