Skip to content

Commit

Permalink
feat: added confirmation dialog to confirm exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jvJUCA committed Apr 16, 2024
1 parent 9f106eb commit a55de3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/public/ModeratedTestView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,10 @@ export default {
this.$toast.info('Use a session your session link to the test')
this.$router.push('/managerview/' + this.test.id)
}
// save first to exit
window.onbeforeunload = function() {
return 'handle your events or msgs here'
}
await this.mappingSteps()
this.consentCompleted = this.currentUserTestAnswer.consentCompleted
const ref = doc(db, 'tests/', this.roomTestId)
Expand Down

0 comments on commit a55de3b

Please sign in to comment.