Skip to content

Commit

Permalink
Merge pull request #2 from mocdaniel/reset-state
Browse files Browse the repository at this point in the history
Reset form after successful submit
  • Loading branch information
mocdaniel authored Jan 3, 2023
2 parents c5cc41d + 8c94c71 commit 15ff744
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/frontend/src/components/FeedbackModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
emit('createdEntry', ["You already submitted feedback!", false])
} else {
emit('createdEntry', ["Your feedback was submitted successfully.", true])
firstname.value = undefined
lastname.value = undefined
occupation.value = undefined
github.value = undefined
testimonial.value = undefined
rating.value = 3
}
}
).catch(e => {
Expand Down

0 comments on commit 15ff744

Please sign in to comment.