mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-28 11:43:35 -05:00
Add param to getEnvironmentDetails allowing us to pass in a value rather than pulling it from the model
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user