forked from jappel/leistungsbilanz-ts
cable-sizing: fix trigger column and add visible affordance
The trigger was wired to the cableCrossSection column, which is not in the default visible column set - the actually visible "Kabel" column is cableSummary (a computed cableType/cableCrossSection/cableLength join). Editing cableSummary already maps to the remark field rather than the underlying cable data (see buildCircuitEditPatch), so this column was effectively a read-only display already; retargeting the trigger there loses no existing manual-edit capability. Also adds .cell-cable-sizing-trigger styling (mirrors .cell-protection-trigger) so the trigger is visually discoverable, which the initial version was missing entirely.
This commit is contained in:
parent
4f7a0c2a8c
commit
068ec72fe2
2 changed files with 25 additions and 1 deletions
|
|
@ -4277,7 +4277,7 @@ export function CircuitTreeEditor(props: { projectId: string; circuitListId: str
|
|||
row.rowType !== "deviceRow"
|
||||
);
|
||||
const isCableSizingTrigger = Boolean(
|
||||
column.key === "cableCrossSection" &&
|
||||
column.key === "cableSummary" &&
|
||||
row.circuit &&
|
||||
row.rowType !== "deviceRow"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue