Improve handling of file uploads
This commit is contained in:
parent
ecd2ed3d07
commit
549ea44245
|
@ -207,12 +207,14 @@
|
||||||
const js = await API.csvToJson(csv)
|
const js = await API.csvToJson(csv)
|
||||||
tmpCustomData = JSON.stringify(js)
|
tmpCustomData = JSON.stringify(js)
|
||||||
}
|
}
|
||||||
|
modal.hide()
|
||||||
|
saveCustomData()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Failed to parse CSV")
|
notifications.error("Failed to parse CSV")
|
||||||
}
|
|
||||||
modal.hide()
|
modal.hide()
|
||||||
drawer.show()
|
drawer.show()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container" bind:this={anchorRight}>
|
<div class="container" bind:this={anchorRight}>
|
||||||
|
@ -262,9 +264,7 @@
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div slot="description">
|
<div slot="description">Provide a JSON array to use as data</div>
|
||||||
Provide a JavaScript or JSON array to use as data
|
|
||||||
</div>
|
|
||||||
<ClientBindingPanel
|
<ClientBindingPanel
|
||||||
slot="body"
|
slot="body"
|
||||||
bind:valid={customDataValid}
|
bind:valid={customDataValid}
|
||||||
|
|
Loading…
Reference in New Issue