Make sure the regen confirm dialog result is actually used :-/

This commit is contained in:
Joseph Schorr 2014-08-27 13:04:31 -04:00
parent d76d4704a0
commit 97aa2c5aaa

View file

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