@ -53,16 +53,17 @@
|
|||||||
await $schemRepo.uploadSchematic(name, b64);
|
await $schemRepo.uploadSchematic(name, b64);
|
||||||
|
|
||||||
open = false;
|
open = false;
|
||||||
uploadFile = null;
|
value = "";
|
||||||
dispatch("reset")
|
dispatch("reset")
|
||||||
}
|
}
|
||||||
|
|
||||||
let uploadFile: FileList | null = $state(null);
|
let uploadFile: FileList | null = $state(null);
|
||||||
|
let value = $state("");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SWModal title={t("dashboard.schematic.title")} bind:open>
|
<SWModal title={t("dashboard.schematic.title")} bind:open>
|
||||||
<form>
|
<form>
|
||||||
<input type="file" bind:files={uploadFile} />
|
<input type="file" bind:files={uploadFile} bind:value />
|
||||||
</form>
|
</form>
|
||||||
{#snippet footer()}
|
{#snippet footer()}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user