From cab6c9971526da02e6f6d9b61f34e6c08aea6526 Mon Sep 17 00:00:00 2001 From: Maya Rajan Date: Sun, 15 Dec 2024 02:46:38 -0500 Subject: [PATCH 1/2] modal fix --- extensions/src/textClassification/ImportExport.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/extensions/src/textClassification/ImportExport.svelte b/extensions/src/textClassification/ImportExport.svelte index 4e402f5ee..fe62b8be9 100644 --- a/extensions/src/textClassification/ImportExport.svelte +++ b/extensions/src/textClassification/ImportExport.svelte @@ -20,6 +20,15 @@ extension.buildCustomDeepModel(); close(); }; + + const _close = async () => { + if (file) { + const success = await extension.importClassifier(file); + if (!success) close(); + extension.buildCustomDeepModel(); + } + close(); + }
@@ -33,7 +42,7 @@ on:change={(e) => (file = e.currentTarget.files[0])} /> - Done + Done