mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 05:48:37 -05:00
Add Artifacts CodeMirror field to job details.
This commit is contained in:
@@ -572,8 +572,25 @@ function getExtraVarsDetails () {
|
||||
const tooltip = strings.get('tooltips.EXTRA_VARS');
|
||||
const value = parse(extraVars);
|
||||
const disabled = true;
|
||||
const name = 'extra_vars';
|
||||
|
||||
return { label, tooltip, value, disabled };
|
||||
return { label, tooltip, value, disabled, name };
|
||||
}
|
||||
|
||||
function getArtifactsDetails () {
|
||||
const artifacts = resource.model.get('artifacts');
|
||||
|
||||
if (!artifacts) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const label = strings.get('labels.ARTIFACTS');
|
||||
const tooltip = strings.get('tooltips.ARTIFACTS');
|
||||
const value = parse(artifacts);
|
||||
const disabled = true;
|
||||
const name = 'artifacts';
|
||||
|
||||
return { label, tooltip, value, disabled, name };
|
||||
}
|
||||
|
||||
function getLabelDetails () {
|
||||
@@ -781,6 +798,7 @@ function JobDetailsController (
|
||||
vm.jobTags = getJobTagDetails();
|
||||
vm.skipTags = getSkipTagDetails();
|
||||
vm.extraVars = getExtraVarsDetails();
|
||||
vm.artifacts = getArtifactsDetails();
|
||||
vm.labels = getLabelDetails();
|
||||
vm.inventorySource = getInventorySourceDetails();
|
||||
vm.overwrite = getOverwriteDetails();
|
||||
|
||||
Reference in New Issue
Block a user