Fix format

This commit is contained in:
Laurent Nguyen 2025-04-10 15:32:38 +02:00
parent 184c8dbca1
commit 1108d06fea

View File

@ -1268,8 +1268,8 @@ export const DocumentsTabComponent: React.FunctionComponent<IDocumentsTabCompone
? `the selected ${selectedRows.size} items` ? `the selected ${selectedRows.size} items`
: "the selected item" : "the selected item"
: isPlural : isPlural
? `the selected ${selectedRows.size} documents` ? `the selected ${selectedRows.size} documents`
: "the selected document"; : "the selected document";
const msg = `Are you sure you want to delete ${documentName}?`; const msg = `Are you sure you want to delete ${documentName}?`;
useDialog useDialog
@ -2236,17 +2236,17 @@ export const DocumentsTabComponent: React.FunctionComponent<IDocumentsTabCompone
)} )}
{(bulkDeleteProcess.failedIds.length > 0 || {(bulkDeleteProcess.failedIds.length > 0 ||
(bulkDeleteProcess.throttledIds.length > 0 && bulkDeleteMode !== "inProgress")) && ( (bulkDeleteProcess.throttledIds.length > 0 && bulkDeleteMode !== "inProgress")) && (
<MessageBar intent="error" style={{ marginBottom: tokens.spacingVerticalL }}> <MessageBar intent="error" style={{ marginBottom: tokens.spacingVerticalL }}>
<MessageBarBody> <MessageBarBody>
<MessageBarTitle>Error</MessageBarTitle> <MessageBarTitle>Error</MessageBarTitle>
Failed to delete{" "} Failed to delete{" "}
{bulkDeleteMode === "inProgress" {bulkDeleteMode === "inProgress"
? bulkDeleteProcess.failedIds.length ? bulkDeleteProcess.failedIds.length
: bulkDeleteProcess.failedIds.length + bulkDeleteProcess.throttledIds.length}{" "} : bulkDeleteProcess.failedIds.length + bulkDeleteProcess.throttledIds.length}{" "}
document(s). document(s).
</MessageBarBody> </MessageBarBody>
</MessageBar> </MessageBar>
)} )}
{bulkDeleteProcess.hasBeenThrottled && ( {bulkDeleteProcess.hasBeenThrottled && (
<MessageBar intent="warning"> <MessageBar intent="warning">
<MessageBarBody> <MessageBarBody>