fix(desktop): copy parent name for tree group nodes

This commit is contained in:
t8y2 committed 2026-06-02 00:00:07 +08:00
1 parent 130a33808e
commit 088eaccecc
3 files changed
+67 -2

No files matched your search

@@ -81,6 +81,7 @@ import {
usesTreeSchemaMode,
} from "@/lib/databaseCapabilities";
import {
copyNameForTreeNode,
objectSourceKindForTreeNode,
sidebarSelectionCopyAction,
treeNodeRowAction,
@@ -684,7 +685,7 @@ async function confirmDelete() {
async function copyName() {
try {
await copyToClipboard(props.node.label);
await copyToClipboard(copyNameForTreeNode(props.node));
toast(t("connection.copied"), 2000);
} catch (e: any) {
toast(t("grid.copyFailed", { message: e?.message || String(e) }), 5000);