Fix copy for 1 vs multiple doc deletion
This commit is contained in:
parent
512660cea0
commit
c21270e1ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue