diff --git a/static/js/app.js b/static/js/app.js index 0c91c7c6d..c26e5800d 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2406,8 +2406,10 @@ quayApp.directive('dockerAuthDialog', function (Config) { $scope.askRegenerate = function() { bootbox.confirm('Are you sure you want to regenerate the token? All existing login credentials will become invalid', function(resp) { - $scope.regenerating = true; - $scope.regenerate({'username': $scope.username, 'token': $scope.token}); + if (resp) { + $scope.regenerating = true; + $scope.regenerate({'username': $scope.username, 'token': $scope.token}); + } }); };