Skip to content

fix(settings-sync): add confirmation dialog before import#41

Open
davidweb3-ctrl wants to merge 1 commit intoCortexLM:mainfrom
davidweb3-ctrl:fix/settings-sync-import-confirmation-27667
Open

fix(settings-sync): add confirmation dialog before import#41
davidweb3-ctrl wants to merge 1 commit intoCortexLM:mainfrom
davidweb3-ctrl:fix/settings-sync-import-confirmation-27667

Conversation

@davidweb3-ctrl
Copy link

Summary

Adds a confirmation step before applying imported settings to prevent accidental overwrites of sync-managed local state.

Changes

  • Added confirmImport state to track pending import
  • Added pendingImport state to store file content
  • Shows warning with Yes/No confirmation before applying import
  • Cancel option discards the pending import

Issue

Fixes PlatformNetwork/bounty-challenge#27667

Previously, selecting a file triggered immediate import without confirmation, which could accidentally overwrite current sync-managed settings.

Adds a confirmation step before applying imported settings to prevent
accidental overwrites of sync-managed local state.

- Added confirmImport state to track pending import
- Added pendingImport state to store file content
- Shows warning with Yes/No confirmation before import
- Cancel option discards the pending import

Fixes PlatformNetwork/bounty-challenge#27667
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.

[BUG] [alpha] Settings Sync Import Settings overwrites local state immediately with no confirmation

1 participant