Skip to content

fix(connection): use parameter in context menu command handlers - #324

Merged
CalvinAllen merged 1 commit into
mainfrom
fix/connection/context-menu-commands
Dec 22, 2025
Merged

CalvinAllen merged 1 commit into
mainfrom
fix/connection/context-menu-commands

Conversation

@CalvinAllen

@CalvinAllen CalvinAllen commented Dec 22, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix OnConnect, OnDisconnect, and OnEditConnection to check command parameter before falling back to SelectedNode
  • This matches the pattern already used in OnDeleteConnection

Closes #25

Test plan

  • Right-click on a connection and select "Connect" - verify it connects
  • Right-click on a connected connection and select "Disconnect" - verify it disconnects
  • Right-click on a connection and select "Edit Connection..." - verify the dialog opens with the connection's details

OnConnect, OnDisconnect, and OnEditConnection were only checking
SelectedNode but not the command parameter, causing context menu
commands to fail when the right-clicked node wasn't already selected.
@CalvinAllen
CalvinAllen merged commit ff9d8c4 into main Dec 22, 2025
@CalvinAllen
CalvinAllen deleted the fix/connection/context-menu-commands branch December 22, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[CONN-021] Support editing existing connections

1 participant