Cleanup linting errors

This commit is contained in:
mabashian
2018-03-21 10:27:48 -04:00
parent 2e858790db
commit f0ff578923

View File

@@ -51,30 +51,39 @@ function atRelaunchCtrl (
'data.actions.POST.verbosity.choices', 'data.actions.POST.verbosity.choices',
[] []
).map(c => ({ label: c[1], value: c[0] })); ).map(c => ({ label: c[1], value: c[0] }));
const verbosity = _.find(
verbosityChoices,
item => item.value === populatedJob.verbosity
);
const jobType = _.find(
jobTypeChoices,
item => item.value === populatedJob.job_type
);
vm.promptData = { vm.promptData = {
launchConf: { launchConf: {
passwords_needed_to_start: getRelaunchRes.data.passwords_needed_to_start passwords_needed_to_start:
getRelaunchRes.data.passwords_needed_to_start
}, },
launchOptions: launchOptions.data, launchOptions: launchOptions.data,
job: job.id, job: job.id,
relaunchHostType: option ? (option.name).toLowerCase() : null, relaunchHostType: option ? (option.name).toLowerCase() : null,
prompts: { prompts: {
credentials: { credentials: {
value: populatedJob.summary_fields.credentials ? populatedJob.summary_fields.credentials : [] value: populatedJob.summary_fields.credentials || []
}, },
variables: { variables: {
value: populatedJob.extra_vars value: populatedJob.extra_vars
}, },
inventory: { inventory: {
value: populatedJob.summary_fields.inventory ? populatedJob.summary_fields.inventory : null value: populatedJob.summary_fields.inventory || null
}, },
verbosity: { verbosity: {
value: _.find(verbosityChoices, item => item.value === populatedJob.verbosity), value: verbosity,
choices: verbosityChoices choices: verbosityChoices
}, },
jobType: { jobType: {
value: _.find(jobTypeChoices, item => item.value === populatedJob.job_type), value: jobType,
choices: jobTypeChoices choices: jobTypeChoices
}, },
limit: { limit: {