mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🍞 feat: Add Toasts for Successful Conversation Deletion (#10661)
* feat: add toasts for succesful conversation deletion * chore: address copilot comments
This commit is contained in:
parent
f5132a65e9
commit
30df16f5b5
3 changed files with 11 additions and 0 deletions
|
|
@ -55,6 +55,11 @@ export function DeleteConversationDialog({
|
||||||
}
|
}
|
||||||
setMenuOpen?.(false);
|
setMenuOpen?.(false);
|
||||||
retainView();
|
retainView();
|
||||||
|
showToast({
|
||||||
|
message: localize('com_ui_convo_delete_success'),
|
||||||
|
severity: NotificationSeverity.SUCCESS,
|
||||||
|
showIcon: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onError: () => {
|
onError: () => {
|
||||||
showToast({
|
showToast({
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,11 @@ export default function ArchivedChatsTable({
|
||||||
onSuccess: async () => {
|
onSuccess: async () => {
|
||||||
setIsDeleteOpen(false);
|
setIsDeleteOpen(false);
|
||||||
await refetch();
|
await refetch();
|
||||||
|
showToast({
|
||||||
|
message: localize('com_ui_convo_delete_success'),
|
||||||
|
severity: NotificationSeverity.SUCCESS,
|
||||||
|
showIcon: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onError: (error: unknown) => {
|
onError: (error: unknown) => {
|
||||||
showToast({
|
showToast({
|
||||||
|
|
|
||||||
|
|
@ -799,6 +799,7 @@
|
||||||
"com_ui_continue_oauth": "Continue with OAuth",
|
"com_ui_continue_oauth": "Continue with OAuth",
|
||||||
"com_ui_controls": "Controls",
|
"com_ui_controls": "Controls",
|
||||||
"com_ui_convo_delete_error": "Failed to delete conversation",
|
"com_ui_convo_delete_error": "Failed to delete conversation",
|
||||||
|
"com_ui_convo_delete_success": "Conversation successfully deleted",
|
||||||
"com_ui_copied": "Copied!",
|
"com_ui_copied": "Copied!",
|
||||||
"com_ui_copied_to_clipboard": "Copied to clipboard",
|
"com_ui_copied_to_clipboard": "Copied to clipboard",
|
||||||
"com_ui_copy_code": "Copy code",
|
"com_ui_copy_code": "Copy code",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue