From 80f7d5f34a0e0ad7ae51d67a8e8c324ebe29e0e6 Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Thu, 19 Mar 2026 20:34:31 +0530
Subject: [PATCH] feat: enhance document deletion feedback in UI
---
.../documents/(manage)/components/DocumentsTableShell.tsx | 4 ++--
.../components/layout/providers/LayoutDataProvider.tsx | 5 +----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
index 75d8f4ca3..511ad3151 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
@@ -982,7 +982,7 @@ export function DocumentsTableShell({
disabled={isDeleting}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isDeleting ? "Deleting" : "Delete"}
+ {isDeleting ? : "Delete"}
@@ -1100,7 +1100,7 @@ export function DocumentsTableShell({
disabled={isBulkDeleting}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isBulkDeleting ? "Deleting..." : "Delete"}
+ {isBulkDeleting ? : "Delete"}
diff --git a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
index 6ae258f99..35a6b0a02 100644
--- a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
+++ b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
@@ -823,10 +823,7 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2"
>
{isDeletingChat ? (
- <>
-
- {t("deleting")}
- >
+
) : (
tCommon("delete")
)}