Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Handle sync network failure errors #8108

Merged
merged 1 commit into from
Apr 7, 2017
Merged

Conversation

diracdeltas
Copy link
Member

@diracdeltas diracdeltas commented Apr 6, 2017

Fix #7972

Test plan:

  1. turn off wifi
  2. try to setup sync in a clean profile. you should see an error message.
  3. turn wifi back on.
  4. click the 'retry' button in about:preferences#sync
  5. sync should now set up
  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Test Plan:

@diracdeltas diracdeltas requested a review from ayumi April 6, 2017 23:55
@diracdeltas diracdeltas added this to the 0.14.2 milestone Apr 7, 2017
Copy link
Contributor

@ayumi ayumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test plan success

i suggest to change the button style

get errorContent () {
return <div className='errorContainer'>
<div className='setupError'>{this.setupError}</div>
<button data-l10n-id='syncRetryButton' onClick={this.retry.bind(this)} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a little basic; what do you think of:
<Button l10nId='syncRetryButton' className='primaryButton' onClick={this.retry.bind(this)} />

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

color: red;
font-weight: bold;
}
.errorContainer {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if u do the Button change this can be removed

Fix #7972

Test plan:
1. turn off wifi
2. try to setup sync in a clean profile. you should see an error message.
3. turn wifi back on.
4. click the 'retry' button in about:preferences#sync
5. sync should now set up
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants