mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-16 06:38:20 +01:00
Fix format
This commit is contained in:
parent
184c8dbca1
commit
1108d06fea
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user