Skip to content

Commit

Permalink
add confirmation for deleting submission
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
  • Loading branch information
tpokorra committed Oct 25, 2023
1 parent 7a912de commit 6917908
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/Submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ export default {
* Delete the submission
*/
async onDeleteSubmission() {
if (!confirm(t('forms', 'Are you sure you want to delete your response?'))) {
return
}
this.loading = true
try {
Expand Down

0 comments on commit 6917908

Please sign in to comment.