fix: surface save errors in QuickCapture via error.value

This commit is contained in:
pyr0ball 2026-05-11 09:19:38 -07:00
parent 862451d1dc
commit 859ad1b228

View file

@ -197,12 +197,14 @@ async function run() {
async function saveQuick() {
saving.value = true
try { await postIncident('medium', '') }
catch (e) { error.value = e instanceof Error ? e.message : 'Failed to save incident' }
finally { saving.value = false }
}
async function saveWithDetails() {
saving.value = true
try { await postIncident(detailSeverity.value, detailNotes.value) }
catch (e) { error.value = e instanceof Error ? e.message : 'Failed to save incident' }
finally { saving.value = false }
}