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
@@ -0,0 +1,11 @@
|
||||
import type { useT } from '@/i18n/useT'
|
||||
import { coreStopped } from './runtime'
|
||||
|
||||
/**
|
||||
* The alert after a core action failed: "try again" while a retry can work; once the engine
|
||||
* stopped after its three recoveries, the clear final state (reload the page, the report is
|
||||
* kept in the tab) instead of a retry that cannot succeed (owner decision 2026-10-15).
|
||||
*/
|
||||
export function coreFailureMessage(t: ReturnType<typeof useT>): string {
|
||||
return t(coreStopped() ? 'core.stopped' : 'core.action_failed')
|
||||
}
|
||||
Reference in new issue
Block a user