Fix copy for 1 vs multiple doc deletion

This commit is contained in:
Mike Fortman 2025-11-21 15:24:03 -06:00
parent 512660cea0
commit c21270e1ac

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}
/>