Make sure the regen confirm dialog result is actually used :-/
This commit is contained in:
parent
d76d4704a0
commit
97aa2c5aaa
1 changed files with 4 additions and 2 deletions
|
@ -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});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue