mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Fix bug with markup. Simplify code.
This commit is contained in:
@@ -2371,7 +2371,7 @@ a:link {
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t abs {
|
.tabs {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 15px 0 25px 0;
|
margin: 15px 0 25px 0;
|
||||||
display: table;
|
display: table;
|
||||||
|
|||||||
@@ -64,11 +64,17 @@ export const deleteDocuments = async (collection: CollectionBase, documentIds: D
|
|||||||
|
|
||||||
const allResult = await Promise.all(promiseArray);
|
const allResult = await Promise.all(promiseArray);
|
||||||
const flatAllResult = Array.prototype.concat.apply([], allResult);
|
const flatAllResult = Array.prototype.concat.apply([], allResult);
|
||||||
logConsoleInfo(`Successfully deleted ${getEntityName(flatAllResult.length > 1)}: ${flatAllResult.length} out of ${nbDocuments}`);
|
logConsoleInfo(
|
||||||
|
`Successfully deleted ${getEntityName(flatAllResult.length > 1)}: ${flatAllResult.length} out of ${nbDocuments}`,
|
||||||
|
);
|
||||||
// TODO: handle case result.length != nbDocuments
|
// TODO: handle case result.length != nbDocuments
|
||||||
return flatAllResult;
|
return flatAllResult;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error, "DeleteDocuments", `Error while deleting ${documentIds.length} ${getEntityName(documentIds.length > 1)}`);
|
handleError(
|
||||||
|
error,
|
||||||
|
"DeleteDocuments",
|
||||||
|
`Error while deleting ${documentIds.length} ${getEntityName(documentIds.length > 1)}`,
|
||||||
|
);
|
||||||
throw error;
|
throw error;
|
||||||
} finally {
|
} finally {
|
||||||
clearMessage();
|
clearMessage();
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ describe("Documents tab (Mongo API)", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("renders by default the first document", async () => {
|
it("renders by default the first document", async () => {
|
||||||
// expect(wrapper.findWhere((node) => node.text().includes(PROPERTY_VALUE)).exists()).toBeTruthy();
|
expect(wrapper.findWhere((node) => node.text().includes(PROPERTY_VALUE)).exists()).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("default buttons", async () => {
|
it("default buttons", async () => {
|
||||||
|
|||||||
@@ -13,12 +13,8 @@ describe("DocumentsTableComponent", () => {
|
|||||||
{ [ID_HEADER]: "2", [PARTITION_KEY_HEADER]: "pk2" },
|
{ [ID_HEADER]: "2", [PARTITION_KEY_HEADER]: "pk2" },
|
||||||
{ [ID_HEADER]: "3", [PARTITION_KEY_HEADER]: "pk3" },
|
{ [ID_HEADER]: "3", [PARTITION_KEY_HEADER]: "pk3" },
|
||||||
],
|
],
|
||||||
onItemClicked: (index: number): void => {
|
onItemClicked: (): void => {},
|
||||||
index;
|
onSelectedRowsChange: (): void => {},
|
||||||
},
|
|
||||||
onSelectedRowsChange: (selectedItemsIndices: Set<TableRowId>): void => {
|
|
||||||
selectedItemsIndices;
|
|
||||||
},
|
|
||||||
selectedRows: new Set<TableRowId>(),
|
selectedRows: new Set<TableRowId>(),
|
||||||
size: {
|
size: {
|
||||||
height: 0,
|
height: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user