added download button for orignal import csv file
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user