From 5a5717699b8b2d60b7d92c2087ed2cc22667e1cc Mon Sep 17 00:00:00 2001
From: ivar <i@oiee.no>
Date: Sat, 27 Dec 2025 11:25:47 +0100
Subject: Almost there

---
 app/src/routes/+page.svelte | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

(limited to 'app/src/routes/+page.svelte')

diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte
index 6f257f6..ee4148b 100644
--- a/app/src/routes/+page.svelte
+++ b/app/src/routes/+page.svelte
@@ -1,9 +1,7 @@
 <script lang="ts">
     import Button from "$lib/ui/button.svelte";
-    import { clear_auth_session, init_auth_session } from "./methods.remote";
+    import { clear_auth_session, init_auth_session, do_import } from "./methods.remote";
     import type { PageProps } from "./$types";
-    import { Temporal } from "temporal-polyfill";
-    import { instantAsHtmlInputValueString } from "$lib/helpers";
     import type { ImportForm } from "$lib/shared";
 
     let { data }: PageProps = $props();
@@ -14,7 +12,12 @@
         dryRun: true,
     });
 
-    async function run() {}
+    async function run() {
+        if (!form.mappings.length) {
+            return;
+        }
+        await do_import(form);
+    }
 
     async function authorize() {
         navigating = true;
@@ -34,8 +37,6 @@
         mappings.push({ sb1Id, actualId });
         form.mappings = mappings;
     }
-
-    $inspect(form);
 </script>
 
 <main>
-- 
cgit v1.3

