Fix missing confirmation when deleting a user-generated file

This commit is contained in:
Sebastian Serth
2023-12-22 00:28:32 +01:00
committed by Sebastian Serth
parent bf0e6149da
commit 43f93af575
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ var CodeOceanEditor = {
confirmDestroy: function (event) {
event.preventDefault();
if (confirm($(event.target).data('message-confirm'))) {
if (confirm(I18n.t('shared.confirm_destroy'))) {
this.destroyFile();
}
},