fix: loading AI toast + flash vert auto-save + refresh doc après close editor
CI / lint (push) Failing after 4s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 16s

This commit is contained in:
2026-05-30 22:07:16 -04:00
parent adbeb54887
commit a4e2d0629a
2 changed files with 19 additions and 11 deletions
+2 -1
View File
@@ -343,10 +343,11 @@ export async function createAIToolbar(container, getEditorView) {
showToast('AI: sélectionnez du texte à traiter', 'warning');
return;
}
showToast('⏳ AI: traitement en cours...', 'info');
try {
const result = await aiAction(endpoint, text, extra);
replaceSelection(v, result, mode);
showToast('AI: texte traité', 'success');
showToast('AI: texte traité ✓', 'success');
} catch (e) {
const msg = String(e.message || e);
if (msg.includes('401')) {