From 97aa2c5aaa68c9e3f45686707057917c884829a2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 27 Aug 2014 13:04:31 -0400 Subject: [PATCH] Make sure the regen confirm dialog result is actually used :-/ --- static/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}); + } }); };