feat(editor): a clear final state once the engine spent its three recoveries (canvas and action alerts)
This commit is contained in:
1 parent
f0580922b5
commit
0279953e9e
19 files changed
+101
-16
No files matched your search
@@ -20,6 +20,7 @@ import { pickLabel } from '@/i18n/pickLocaleLabel'
|
||||
import { useT } from '@/i18n/useT'
|
||||
import { useLocaleStore } from '@/state/localeStore'
|
||||
import type { Locale } from '@/i18n/types'
|
||||
import { coreFailureMessage } from '@/core/failure'
|
||||
|
||||
export interface ObservationCardProps {
|
||||
observation: Observation
|
||||
@@ -168,7 +169,7 @@ export default function ObservationCard({
|
||||
...(side ? { side } : {}),
|
||||
})
|
||||
if (outcome.ok) onChange(outcome.value)
|
||||
else window.alert(t('core.action_failed'))
|
||||
else window.alert(coreFailureMessage(t))
|
||||
}
|
||||
const removeFinding = (target: Finding) =>
|
||||
onChange({
|
||||
|
||||
Reference in new issue
Block a user