Merge pull request #482 from langflow-ai/delete-dialog-copy

Fix copy for 1 vs multiple doc deletion
This commit is contained in:
pushkala-datastax 2025-11-21 17:09:08 -08:00 committed by GitHub
commit a12a666ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,7 +391,7 @@ function SearchPage() {
<DeleteConfirmationDialog
open={showBulkDeleteDialog}
onOpenChange={setShowBulkDeleteDialog}
title="Delete Documents"
title={selectedRows.length > 1 ? "Delete Documents" : "Delete Document"}
description={`Are you sure you want to delete ${
selectedRows.length
} document${
@ -400,7 +400,7 @@ function SearchPage() {
Documents to be deleted:
${selectedRows.map((row) => `${row.filename}`).join("\n")}`}
confirmText="Delete All"
confirmText={selectedRows.length > 1 ? "Delete All" : "Delete"}
onConfirm={handleBulkDelete}
isLoading={deleteDocumentMutation.isPending}
/>