Skip to content

Commit

Permalink
Merge pull request #293 from docat-org/bugfix/292-Upload-Document-twi…
Browse files Browse the repository at this point in the history
…ce-requires-reload

Fix(web): Upload Document twice doesn't work
  • Loading branch information
fliiiix authored Oct 3, 2022
2 parents a842960 + 86f6301 commit 8cea1b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/pages/Upload.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Layout>
<form novalidate @submit.prevent="validateUpload" class="upload-form">
<form ref="uploadForm" novalidate @submit.prevent="validateUpload" class="upload-form">
<h1 class="upload-title">Upload documentation</h1>

<p>
Expand Down Expand Up @@ -114,6 +114,7 @@ export default {
this.form.version = null
this.form.file = ''
this.$refs.fileInput.clearField()
this.$refs.uploadForm.reset()
},
validateUpload() {
this.$v.$touch()
Expand Down

0 comments on commit 8cea1b4

Please sign in to comment.