fix(grid): enable prepared row copy actions

This commit is contained in:
Freedom authored and GitHub committed 2026-07-13 00:27:47 +08:00
1 parent a3f3cadb39
commit d27f8e18a6
2 files changed
+56 -14

No files matched your search

@@ -8683,18 +8683,15 @@ function copySubmenu(): ContextMenuItem {
items.push({
label: labels.insertNoPkMerged,
action: () => copyRowAsInsertWithoutPrimaryKeys("merged"),
disabled: !canCopyRowAsInsertWithoutPrimaryKeys.value,
});
items.push({
label: labels.insertNoPkRowByRow,
action: () => copyRowAsInsertWithoutPrimaryKeys("row-by-row"),
disabled: !canCopyRowAsInsertWithoutPrimaryKeys.value,
});
} else {
items.push({
label: labels.insertNoPk,
action: () => copyRowAsInsertWithoutPrimaryKeys(),
disabled: !canCopyRowAsInsertWithoutPrimaryKeys.value,
});
}
}