feat: enhance document deletion feedback in UI

This commit is contained in:
Anish Sarkar 2026-03-19 20:34:31 +05:30
parent e9485ab2df
commit 80f7d5f34a
2 changed files with 3 additions and 6 deletions

View file

@ -982,7 +982,7 @@ export function DocumentsTableShell({
disabled={isDeleting} disabled={isDeleting}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90" className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
> >
{isDeleting ? "Deleting" : "Delete"} {isDeleting ? <Spinner size="sm" /> : "Delete"}
</AlertDialogAction> </AlertDialogAction>
</AlertDialogFooter> </AlertDialogFooter>
</AlertDialogContent> </AlertDialogContent>
@ -1100,7 +1100,7 @@ export function DocumentsTableShell({
disabled={isBulkDeleting} disabled={isBulkDeleting}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90" className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
> >
{isBulkDeleting ? "Deleting..." : "Delete"} {isBulkDeleting ? <Spinner size="sm" /> : "Delete"}
</AlertDialogAction> </AlertDialogAction>
</AlertDialogFooter> </AlertDialogFooter>
</AlertDialogContent> </AlertDialogContent>

View file

@ -823,10 +823,7 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2" className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2"
> >
{isDeletingChat ? ( {isDeletingChat ? (
<> <Spinner size="sm" />
<Spinner size="sm" />
{t("deleting")}
</>
) : ( ) : (
tCommon("delete") tCommon("delete")
)} )}