From 8e8a3024cb082699826e415488431f2b291cbbc3 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 26 Sep 2024 10:02:29 +0200 Subject: [PATCH] Clear task data on modal close in CreateOrEditTask.vue --- ui/src/components/CreateOrEditTask.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ui/src/components/CreateOrEditTask.vue b/ui/src/components/CreateOrEditTask.vue index 6668013..ccce8d4 100644 --- a/ui/src/components/CreateOrEditTask.vue +++ b/ui/src/components/CreateOrEditTask.vue @@ -407,8 +407,24 @@ export default { }, onModalHidden() { this.clearErrors(); + this.clearTask(); this.$emit("hide"); }, + clearTask() { + this.task = { + localuser: "", + remoteusername: "", + remotepassword: "", + remotehostname: "", + remoteport: "", + security: "", + foldersynchronization: "", + delete: "", + exclude: "", + cron: "", + cron_enabled: false, + }; + }, }, };