Confetti on form submission (#113)

This commit is contained in:
Chirag Chhatrala
2023-04-12 16:47:05 +05:30
committed by GitHub
parent 92b2548add
commit df68b20f82
9 changed files with 70 additions and 2 deletions

View File

@@ -239,6 +239,12 @@ export default {
this.loading = false
this.submitted = true
this.$emit('submitted', true)
// If enabled display confetti
if(this.form.confetti_on_submission){
this.playConfetti()
}
}).catch((error) => {
if (error.response.data && error.response.data.message) {
this.alertError(error.response.data.message)