From 8dbc9db292c36797e6170ae8113f3598086a131d Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 22 Sep 2015 18:00:43 -0400 Subject: [PATCH] fix misreference to $scope.isUserNamespace Fixes #528. --- static/js/directives/ui/repo-count-checker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/directives/ui/repo-count-checker.js b/static/js/directives/ui/repo-count-checker.js index 63b9be492..e74dba4e6 100644 --- a/static/js/directives/ui/repo-count-checker.js +++ b/static/js/directives/ui/repo-count-checker.js @@ -71,11 +71,11 @@ angular.module('quay').directive('repoCountChecker', function () { } }; - var isUserNamespace = UserService.isUserNamespace($scope.namespace); - var namespace = isUserNamespace ? null : $scope.namespace; + $scope.isUserNamespace = !UserService.isOrganization($scope.namespace); + var namespace = $scope.isUserNamespace ? null : $scope.namespace; PlanService.changePlan($scope, namespace, $scope.planRequired.stripeId, callbacks); }; } }; return directiveDefinitionObject; -}); \ No newline at end of file +});