Change Dockerfile build form to not require a robot unless sure we need it

Fixes #2377

Before this change, we'd err on the side of caution, which is bad UX
This commit is contained in:
Joseph Schorr 2017-02-22 16:27:14 -05:00
parent 7f1980bff1
commit baf4b7bed4

View file

@ -27,10 +27,10 @@ angular.module('quay').directive('dockerfileBuildForm', function () {
$scope.state = 'checking-image';
ApiService.getRepo(null, params).then(function(repository) {
$scope.privateBaseRepository = repository.is_public ? null : baseImage;
$scope.state = 'awaiting-bot';
$scope.state = repository.is_public ? 'ready' : 'awaiting-bot';
}, function() {
$scope.privateBaseRepository = baseImage;
$scope.state = 'awaiting-bot';
$scope.privateBaseRepository = null;
$scope.state = 'ready';
});
};