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 committed Nov 16, 2018
1 parent 261bba6 commit 905fdf5
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 905fdf5

Please sign in to comment.