fix: surface save errors in QuickCapture via error.value
This commit is contained in:
parent
ba6995e279
commit
3b00ad8b47
1 changed files with 2 additions and 0 deletions
|
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue