-
Notifications
You must be signed in to change notification settings - Fork 970
Option to clear Sync server data and local browser state #7349
Conversation
@@ -242,6 +274,14 @@ class SyncTab extends ImmutableComponent { | |||
</div> | |||
: null | |||
} | |||
{ | |||
this.isSetup | |||
? <div class='syncClearData'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think react is throwing a warning because it expects className here
app/sync.js
Outdated
if (dispatcherCallback) { | ||
dispatcherCallback({actionType: syncConstants.SYNC_DELETE_USER}) | ||
} | ||
appActions.changeSetting(settings.SYNC_ENABLED, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would wait a short amount of time to call this to make sure that SYNC_DELETE_USER gets processed before the extension is disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could also add an IPC message for DELETED_USER and wait for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that works too
test plan worked for me. 👍 |
b6307f3
to
4fc15b4
Compare
@diracdeltas have addressed comments. deleting data requires sync to be enabled because it needs a valid AWS credential to issue the delete request. i've added a little message to explain: |
Fix #7275
Fix brave/sync#51
git rebase -i
to squash commits (if needed).Test Plan:
npm run start2
). Add it to 0's Sync profile and see the bookmarks sync over.Pix

