From 6ca85f099e4a5e3b3eca63412b8768e5200fbf1f Mon Sep 17 00:00:00 2001 From: sadnub Date: Sat, 24 Apr 2021 21:21:37 -0400 Subject: [PATCH] fix autotask modals and allow editing the custom field for a collector task --- .../modals/tasks/AddAutomatedTask.vue | 2 +- .../modals/tasks/EditAutomatedTask.vue | 59 ++++++++++++++----- 2 files changed, 46 insertions(+), 15 deletions(-) diff --git a/web/src/components/modals/tasks/AddAutomatedTask.vue b/web/src/components/modals/tasks/AddAutomatedTask.vue index 370b279e..7caed63f 100644 --- a/web/src/components/modals/tasks/AddAutomatedTask.vue +++ b/web/src/components/modals/tasks/AddAutomatedTask.vue @@ -85,7 +85,7 @@ map-options emit-value options-dense - hint="The return value of script will be saved to custom field selected" + hint="The last line of script output will be saved to custom field selected" /> diff --git a/web/src/components/modals/tasks/EditAutomatedTask.vue b/web/src/components/modals/tasks/EditAutomatedTask.vue index 74c421e7..aac4561c 100644 --- a/web/src/components/modals/tasks/EditAutomatedTask.vue +++ b/web/src/components/modals/tasks/EditAutomatedTask.vue @@ -15,11 +15,12 @@ dense options-dense outlined - v-model="localTask.script" + v-model="autotask.script" :options="scriptOptions" label="Select script" map-options emit-value + @input="setScriptDefaults" >