mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-09 19:42:48 +00:00
@@ -35,6 +35,7 @@
|
|||||||
let redoQueue: Change[] = []
|
let redoQueue: Change[] = []
|
||||||
|
|
||||||
async function save() {
|
async function save() {
|
||||||
|
try {
|
||||||
const port = $serialPort
|
const port = $serialPort
|
||||||
if (!port) return
|
if (!port) return
|
||||||
$syncStatus = "uploading"
|
$syncStatus = "uploading"
|
||||||
@@ -112,8 +113,13 @@
|
|||||||
$deviceChords = $chords.filter(({deleted}) => !deleted).map(({actions, phrase}) => ({actions, phrase}))
|
$deviceChords = $chords.filter(({deleted}) => !deleted).map(({actions, phrase}) => ({actions, phrase}))
|
||||||
$deviceSettings = $settings.map(({value}) => value)
|
$deviceSettings = $settings.map(({value}) => value)
|
||||||
$changes = []
|
$changes = []
|
||||||
|
} catch (e) {
|
||||||
|
alert(e)
|
||||||
|
console.error(e)
|
||||||
|
} finally {
|
||||||
$syncStatus = "done"
|
$syncStatus = "done"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user