Add param to getEnvironmentDetails allowing us to pass in a value rather than pulling it from the model

This commit is contained in:
mabashian 2019-01-24 12:58:29 -05:00
parent 8037cddfe5
commit 14423c4f3f

View File

@ -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;