Skip to content

Commit

Permalink
modal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mayarajan3 committed Dec 15, 2024
1 parent 9f2e593 commit cab6c99
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion extensions/src/textClassification/ImportExport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
extension.buildCustomDeepModel();
close();
};
const _close = async () => {
if (file) {
const success = await extension.importClassifier(file);
if (!success) close();
extension.buildCustomDeepModel();
}
close();
}
</script>

<div style:background-color={color.ui.white}>
Expand All @@ -33,7 +42,7 @@
on:change={(e) => (file = e.currentTarget.files[0])}
/>
</PrimaryButton>
<PrimaryButton on:click={close}>Done</PrimaryButton>
<PrimaryButton on:click={_close}>Done</PrimaryButton>
</div>

<style>
Expand Down

0 comments on commit cab6c99

Please sign in to comment.