added download button for orignal import csv file

This commit is contained in:
Simon Pocrnjič
2026-02-01 09:22:34 +01:00
parent 2968bcf3f8
commit 9cc1b7072c
5 changed files with 163 additions and 51 deletions
+11
View File
@@ -1094,6 +1094,16 @@ async function fetchEvents() {
}
}
async function downloadImport() {
if (!importId.value) return;
try {
const url = route("imports.download", { import: importId.value });
window.location.href = url;
} catch (e) {
console.error("Download failed", e);
}
}
// Simulation (generic or payments) state
const showPaymentSim = ref(false);
const paymentSimLoading = ref(false);
@@ -1339,6 +1349,7 @@ async function fetchSimulation() {
:can-process="canProcess"
:selected-mappings-count="selectedMappingsCount"
@preview="openPreview"
@download="downloadImport"
@save-mappings="saveMappings"
@process-import="processImport"
@simulate="openSimulation"