Skip to content

Commit

Permalink
Clear task data on modal close in CreateOrEditTask.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 26, 2024
1 parent 2180a71 commit 8e8a302
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ui/src/components/CreateOrEditTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
},
},
};
</script>
Expand Down

0 comments on commit 8e8a302

Please sign in to comment.