fix misreference to $scope.isUserNamespace

Fixes #528.
This commit is contained in:
Jimmy Zelinskie 2015-09-22 18:00:43 -04:00
parent dc1d3f73d2
commit 8dbc9db292

View file

@ -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;
});
});