Merge pull request #529 from jzelinskie/fixrepocountchecker

fix misreference to $scope.isUserNamespace
This commit is contained in:
Jimmy Zelinskie 2015-09-22 18:02:49 -04:00
commit d2a11be9a9

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