Skip to content

fix(admin-ui): preserve enabled state when editing data connections#2511

Open
dirkwa wants to merge 1 commit intoSignalK:masterfrom
dirkwa:fix-connection-enabled-state
Open

fix(admin-ui): preserve enabled state when editing data connections#2511
dirkwa wants to merge 1 commit intoSignalK:masterfrom
dirkwa:fix-connection-enabled-state

Conversation

@dirkwa
Copy link
Contributor

@dirkwa dirkwa commented Mar 24, 2026

Summary

  • Remove hardcoded enabled: true in providerClicked that overwrote the actual saved state when opening a data connection for editing
  • Clicking a disabled connection now correctly shows it as disabled in the edit dialog

The structuredClone(provider) spread already carries the correct enabled value from the server. The hardcoded override was only appropriate for new connections (separate code path, unchanged).

Manually tested

  • Added and remove several connections
  • Enabled/Disabled save, reopen verified

The providerClicked callback hardcoded enabled: true, overwriting
the actual saved state. Clicking a disabled connection showed it as
enabled in the edit dialog.
@dirkwa dirkwa force-pushed the fix-connection-enabled-state branch from e0c6284 to 1175057 Compare March 24, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant