Skip to content

feat: Add 'Disable all networks' switch to Manage Networks page#4960

Open
0xrishitripathi wants to merge 1 commit into
Koniverse:masterfrom
0xrishitripathi:feature/disable-all-networks
Open

feat: Add 'Disable all networks' switch to Manage Networks page#4960
0xrishitripathi wants to merge 1 commit into
Koniverse:masterfrom
0xrishitripathi:feature/disable-all-networks

Conversation

@0xrishitripathi

@0xrishitripathi 0xrishitripathi commented Jan 23, 2026

Copy link
Copy Markdown

Summary

Adds a "Disable all networks" switch to the Manage Networks settings page, allowing users to quickly disable all active networks with a single toggle.

Changes

  • ChainService: Added disableAllChains() method that iterates through all active chains and disables them
  • State Handler: Added wrapper method for the chain service
  • Extension Handler: Added message handler case for 'pri(chainService.disableAllChains)'
  • ManageChains UI: Added Switch component positioned between search bar and network list

Testing

  1. Navigate to Settings → Manage Networks
  2. Toggle the "Disable all networks" switch
  3. Verify all networks become disabled
  4. Verify individual networks can be re-enabled from the list

- Add disableAllChains() method to ChainService to disable all active chains
- Add disableAllChains() wrapper in State handler
- Add message handler case for 'pri(chainService.disableAllChains)'
- Add Switch UI component in ManageChains.tsx with proper positioning
- Switch is positioned between search bar and network list, aligned right
- Switch shows loading state while disabling and becomes disabled when all networks are off
@tunghp2002 tunghp2002 linked an issue Mar 17, 2026 that may be closed by this pull request
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.

Disable all networks' switch to Manage Networks page

1 participant