mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-26 07:26:58 +00:00
Fix unused code
This commit is contained in:
parent
60a3a5ffcf
commit
8299ca5f9d
@ -278,10 +278,6 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
visible: true,
|
||||
};
|
||||
|
||||
// TODO: Where is this used?
|
||||
const documentContentsContainerId = `documentContentsContainer${props.tabId}`;
|
||||
const documentContentsGridId = `documentContentsGrid${props.tabId}`;
|
||||
|
||||
const partitionKey: DataModels.PartitionKey =
|
||||
props.partitionKey || (props.collection && props.collection.partitionKey);
|
||||
const partitionKeyPropertyHeaders: string[] = props.collection?.partitionKeyPropertyHeaders || partitionKey?.paths;
|
||||
@ -547,8 +543,8 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
? `the selected ${selectedRows.size} items`
|
||||
: "the selected item"
|
||||
: isPlural
|
||||
? `the selected ${selectedRows.size} documents`
|
||||
: "the selected document";
|
||||
? `the selected ${selectedRows.size} documents`
|
||||
: "the selected document";
|
||||
const msg = `Are you sure you want to delete ${documentName}?`;
|
||||
|
||||
useDialog.getState().showOkCancelModalDialog(
|
||||
@ -1122,7 +1118,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
|
||||
const columnHeaders = {
|
||||
idHeader: props.isPreferredApiMongoDB ? "_id" : "id",
|
||||
partitionKeyHeaders: partitionKeyPropertyHeaders || [],
|
||||
partitionKeyHeaders: (showPartitionKey && partitionKeyPropertyHeaders) || [],
|
||||
};
|
||||
|
||||
const onSelectedRowsChange = (selectedRows: Set<TableRowId>) => {
|
||||
@ -1472,7 +1468,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
<button
|
||||
className="filterbtnstyle queryButton"
|
||||
onClick={onShowFilterClick}
|
||||
/*data-bind="click: onShowFilterClick"*/
|
||||
/*data-bind="click: onShowFilterClick"*/
|
||||
>
|
||||
Edit Filter
|
||||
</button>
|
||||
@ -1522,7 +1518,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
}
|
||||
value={filterContent}
|
||||
onChange={(e) => setFilterContent(e.target.value)}
|
||||
/*
|
||||
/*
|
||||
data-bind="
|
||||
W attr:{
|
||||
placeholder:isPreferredApiMongoDB?'Type a query predicate (e.g., {´a´:´foo´}), or choose one from the drop down list, or leave empty to query all documents.':'Type a query predicate (e.g., WHERE c.id=´1´), or choose one from the drop down list, or leave empty to query all documents.'
|
||||
@ -1575,7 +1571,7 @@ textInput: filterContent"
|
||||
tabIndex={0}
|
||||
onClick={onHideFilterClick}
|
||||
onKeyDown={onCloseButtonKeyDown}
|
||||
/*data-bind="click: onHideFilterClick, event: { keydown: onCloseButtonKeyDown }"*/
|
||||
/*data-bind="click: onHideFilterClick, event: { keydown: onCloseButtonKeyDown }"*/
|
||||
>
|
||||
<img src={CloseIcon} style={{ height: 14, width: 14 }} alt="Hide filter" />
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user