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:
parent
7f1980bff1
commit
baf4b7bed4
1 changed files with 3 additions and 3 deletions
|
@ -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';
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue