Skip to content

Commit 6917908

Browse files
committed
add confirmation for deleting submission
Signed-off-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
1 parent 7a912de commit 6917908

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/views/Submit.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,10 @@ export default {
383383
* Delete the submission
384384
*/
385385
async onDeleteSubmission() {
386+
if (!confirm(t('forms', 'Are you sure you want to delete your response?'))) {
387+
return
388+
}
389+
386390
this.loading = true
387391
388392
try {

0 commit comments

Comments
 (0)