mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +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);
|
||||
retainView();
|
||||
showToast({
|
||||
message: localize('com_ui_convo_delete_success'),
|
||||
severity: NotificationSeverity.SUCCESS,
|
||||
showIcon: true,
|
||||
});
|
||||
},
|
||||
onError: () => {
|
||||
showToast({
|
||||
|
|
|
|||
|
|
@ -93,6 +93,11 @@ export default function ArchivedChatsTable({
|
|||
onSuccess: async () => {
|
||||
setIsDeleteOpen(false);
|
||||
await refetch();
|
||||
showToast({
|
||||
message: localize('com_ui_convo_delete_success'),
|
||||
severity: NotificationSeverity.SUCCESS,
|
||||
showIcon: true,
|
||||
});
|
||||
},
|
||||
onError: (error: unknown) => {
|
||||
showToast({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue