fix: add MongoDB data transfer entry

This commit is contained in:
onenewcode
2026-07-02 10:36:43 +08:00
committed by GitHub
parent c2cc9f22cf
commit 3e686d71fe
@@ -4071,6 +4071,10 @@ function treeItemMenuItems(): ContextMenuItem[] {
} else {
items.push({ label: t("contextMenu.clearDefaultDatabase"), action: clearNodeDefaultDatabase, icon: Database });
}
if (node.type === "mongo-db") {
items.push({ label: "", separator: true });
items.push({ label: t("transfer.dataTransfer"), action: openTransfer, icon: ArrowRightLeft });
}
if (node.type === "redis-db") {
items.push({ label: "", separator: true });
items.push({ label: t("redis.flushDb"), action: flushRedisDb, icon: Eraser, variant: "destructive" as const });