From 7f184af0a048e26d625868386554efdd1cf0ddb5 Mon Sep 17 00:00:00 2001
From: Jagger <634750802@qq.com>
Date: Wed, 27 Nov 2024 15:39:36 +0800
Subject: [PATCH] ui(frontend): update delete datasource alerting
---
frontend/app/src/components/datasource/datasource-card.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frontend/app/src/components/datasource/datasource-card.tsx b/frontend/app/src/components/datasource/datasource-card.tsx
index fe46d1a37..678bf097c 100644
--- a/frontend/app/src/components/datasource/datasource-card.tsx
+++ b/frontend/app/src/components/datasource/datasource-card.tsx
@@ -52,6 +52,8 @@ export function DatasourceCard ({ knowledgeBaseId, datasource }: { knowledgeBase
await deleteDatasource(knowledgeBaseId, datasource.id);
}}
asChild
+ dialogTitle={`Confirm to delete the datasource ${datasource.name} #${datasource.id}`}
+ dialogDescription={<>All documents, chunks, entities and relationships related to this datasource will be deleted. This action cannot be undone.>}
>