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, + }; + }, }, };