1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Fixed bug with REVERT button display

This commit is contained in:
Michael Abashian 2017-06-05 15:41:42 -04:00
parent 068473bdac
commit b033319fff

View File

@ -474,7 +474,7 @@ export default
let machineCredentialMatches = true;
let extraCredentialsMatch = true;
if($scope.defaults.credential) {
if($scope.defaults.credential && $scope.defaults.credential.id) {
if(!$scope.selected_credentials.machine || ($scope.selected_credentials.machine && $scope.selected_credentials.machine.id !== $scope.defaults.credential.id)) {
machineCredentialMatches = false;
}