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}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
{isDeleting ? "Deleting" : "Delete"}
{isDeleting ? <Spinner size="sm" /> : "Delete"}
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
@ -1100,7 +1100,7 @@ export function DocumentsTableShell({
disabled={isBulkDeleting}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
{isBulkDeleting ? "Deleting..." : "Delete"}
{isBulkDeleting ? <Spinner size="sm" /> : "Delete"}
</AlertDialogAction>
</AlertDialogFooter>
</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"
>
{isDeletingChat ? (
<>
<Spinner size="sm" />
{t("deleting")}
</>
<Spinner size="sm" />
) : (
tCommon("delete")
)}