Skip to content

Commit

Permalink
Merge pull request #917 from brave/cez-sync-warn-reset
Browse files Browse the repository at this point in the history
warn user when they want to reset sync chain
  • Loading branch information
cezaraugusto authored Nov 16, 2018
2 parents a5edaac + 3747556 commit 4f83500
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/brave_sync/ui/components/enabledContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class SyncEnabledContent extends React.PureComponent<SyncEnabledContentProps, Sy
}

onSyncReset = () => {
this.props.actions.onSyncReset()
if (window.confirm(getLocale('areYouSure'))) {
this.props.actions.onSyncReset()
}
}

onToggleSyncThisDevice = (event: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit 4f83500

Please sign in to comment.