mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
Add param to getEnvironmentDetails allowing us to pass in a value rather than pulling it from the model
This commit is contained in:
parent
8037cddfe5
commit
14423c4f3f
@ -113,8 +113,8 @@ function getVerbosityDetails () {
|
||||
return { label, value };
|
||||
}
|
||||
|
||||
function getEnvironmentDetails () {
|
||||
const value = resource.model.get('custom_virtualenv');
|
||||
function getEnvironmentDetails (custom_virtualenv) {
|
||||
const value = custom_virtualenv || resource.model.get('custom_virtualenv');
|
||||
|
||||
if (!value || value === '') {
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user