diff --git a/src/components/simulation/SimulationPanel.svelte b/src/components/simulation/SimulationPanel.svelte index 925377f655..bff08d9dd7 100644 --- a/src/components/simulation/SimulationPanel.svelte +++ b/src/components/simulation/SimulationPanel.svelte @@ -331,12 +331,34 @@ function onCancelSimulation(event: CustomEvent) { effects.cancelSimulation(event.detail.id, user); } + + let simulationUploadInput: HTMLInputElement; + + async function onUploadSimulationResults(event: Event) { + const target = event.target as HTMLInputElement; + if (target.files && target.files.length > 0 && $plan) { + await effects.uploadSimulationDataset($plan, target.files[0], user); + target.value = ''; + } + } + + simulationUploadInput.click()} + /> {#if enableReSimulation}