mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
fix config forms from having save button disabled when no license is given
This commit is contained in:
@@ -100,7 +100,7 @@ export default ['i18n', function(i18n) {
|
|||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
ngClick: 'vm.formSave()',
|
ngClick: 'vm.formSave()',
|
||||||
ngDisabled: "license_type !== 'enterprise' || form.$invalid || form.$pending"
|
ngDisabled: "license_type !== 'enterprise' && license_type !== 'open' || configuration_ldap_template_form.$invalid || configuration_ldap_template_form.$pending"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default ['i18n', function(i18n) {
|
|||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
ngClick: 'vm.formSave()',
|
ngClick: 'vm.formSave()',
|
||||||
ngDisabled: "license_type !== 'enterprise' || form.$invalid || form.$pending"
|
ngDisabled: "license_type !== 'enterprise' && license_type !== 'open' || configuration_radius_template_form.$invalid || configuration_radius_template_form.$pending"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default ['i18n', function(i18n) {
|
|||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
ngClick: 'vm.formSave()',
|
ngClick: 'vm.formSave()',
|
||||||
ngDisabled: "license_type !== 'enterprise' || form.$invalid || form.$pending"
|
ngDisabled: "license_type !== 'enterprise' && license_type !== 'open' || configuration_saml_template_form.$invalid || configuration_saml_template_form.$pending"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export default ['i18n', function(i18n) {
|
|||||||
},
|
},
|
||||||
save: {
|
save: {
|
||||||
ngClick: 'vm.formSave()',
|
ngClick: 'vm.formSave()',
|
||||||
ngDisabled: "license_type !== 'enterprise' || form.$invalid || form.$pending"
|
ngDisabled: "license_type !== 'enterprise' && license_type !== 'open' || configuration_tacacs_template_form.$invalid || configuration_tacacs_template_form.$pending"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -95,7 +95,11 @@ export default [
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (key === "LICENSE") {
|
if (key === "LICENSE") {
|
||||||
$scope.license_type = data[key].license_type;
|
if (_.isEmpty(data[key])) {
|
||||||
|
$scope.license_type = "open";
|
||||||
|
} else {
|
||||||
|
$scope.license_type = data[key].license_type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//handle nested objects
|
//handle nested objects
|
||||||
if(ConfigurationUtils.isEmpty(data[key])) {
|
if(ConfigurationUtils.isEmpty(data[key])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user