Fixed errors and added the loading of step 3 document types

This commit is contained in:
2026-01-08 17:18:43 +01:00
parent 43e21cfd8d
commit c833d5bb74
4 changed files with 68 additions and 60 deletions
+13
View File
@@ -419,3 +419,16 @@ function fileDownload() {
console.error("Download failed:", error);
}
}
window.api.getTxtFiles().then(files => {
files.forEach(file => {
const option = document.createElement('option');
option.value = file;
option.textContent = file
.replace('.txt', '') // Endung entfernen
.replace(/_/g, ' ') // Leerzeichen ersetzen
.replace(/\b\w/g, c => c.toUpperCase()) // ersten Buchstaben groß
costumDocumentType.appendChild(option);
});
});