Skip to content

Commit

Permalink
ui(frontend): update delete datasource alerting
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Nov 27, 2024
1 parent aa68dba commit 7f184af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/app/src/components/datasource/datasource-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>documents</b>, <b>chunks</b>, <b>entities</b> and <b>relationships</b> related to this datasource will be <b>deleted</b>. This action cannot be undone.</>}
>
<Button variant="ghost" className="hover:text-destructive hover:bg-destructive/10" size="sm">Delete</Button>
</DangerousActionButton>
Expand Down

0 comments on commit 7f184af

Please sign in to comment.