🚸(frontend) add toast error when AI request fails

When the AI request fails, a toast error is
displayed to the user.
This commit is contained in:
Anthony LC
2024-10-17 10:58:19 +02:00
committed by Anthony LC
parent 7e8732822b
commit e816f0afc8
2 changed files with 2 additions and 0 deletions

View File

@@ -374,6 +374,7 @@ const useHandleAIError = () => {
});
}
toast(t('AI seems busy! Please try again.'), VariantType.ERROR);
console.error(error);
},
[toast, t],

View File

@@ -5,6 +5,7 @@
"\"{{email}}\" is already invited to the document.": "\"{{email}}\" est déjà invité à accéder au document.",
"\"{{email}}\" is already member of the document.": "\"{{email}}\" est déjà membre du document.",
"AI Actions": "Actions IA",
"AI seems busy! Please try again.": "L'IA semble occupée ! Veuillez réessayer.",
"Accessibility": "Accessibilité",
"Accessibility statement": "Déclaration d'accessibilité",
"Address:": "Adresse :",