diff --git a/src/components/tasks/AutomatedTaskForm.vue b/src/components/tasks/AutomatedTaskForm.vue index af1b1be1..7771e249 100644 --- a/src/components/tasks/AutomatedTaskForm.vue +++ b/src/components/tasks/AutomatedTaskForm.vue @@ -87,181 +87,183 @@ :done="step > 2" :error="!isValidStep2" > - -
-
Action Type:
- +
+ +
+
Action Type:
+ - + - + - + - + - - - - + + + +
+
+
+ Actions: + + > + Continue task if an action fails +
- -
- Actions: - - Continue task if an action fails - -
-
- - + +
@@ -283,7 +285,7 @@ + + This task will run as soon as it is created on the + agent + Start Time must be in the future for run once tasks + + @@ -579,7 +597,8 @@ @@ -617,7 +636,7 @@ (val) => convertPeriodToSeconds(val) >= convertPeriodToSeconds( - state.task_repetition_interval + state.task_repetition_interval, ) || 'Repetition duration must be greater than repetition interval', ]" @@ -712,7 +731,7 @@ @click=" validateStep( step === 1 ? $refs.taskGeneralForm : undefined, - $refs.stepper + $refs.stepper, ) " color="primary" @@ -769,6 +788,7 @@ const taskTypeOptions = [ { label: "Monthly", value: "monthly" }, { label: "Run Once", value: "runonce" }, { label: "On check failure", value: "checkfailure" }, + { label: "Onboarding", value: "onboarding" }, { label: "Manual", value: "manual" }, ]; @@ -933,7 +953,7 @@ export default { task.value.actions.push({ type: "script", name: scriptOptions.value.find( - (option) => option.value === script.value + (option) => option.value === script.value, ).label, script: script.value, timeout: defaultTimeout.value, @@ -1019,13 +1039,13 @@ export default { // remove milliseconds and Z to work with native date input task.value.run_time_date = formatDateInputField( task.value.run_time_date, - true + true, ); if (task.value.expire_date) task.value.expire_date = formatDateInputField( task.value.expire_date, - true + true, ); // set task type if monthlydow is being used @@ -1069,7 +1089,7 @@ export default { task.value.monthly_weeks_of_month = []; task.value.task_instance_policy = 0; task.value.expire_date = null; - } + }, ); // check the collector box when editing task and custom field is set