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

Commit 5af0fee

Browse files
committed
Disable sync
- deprecation notice shown - you can restore already existing groups (so that you can clear, if you'd like) - existing sync groups will show and can be cleared
1 parent 19647af commit 5af0fee

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

app/extensions/brave/locales/en-US/preferences.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ syncShowQR=Show secret QR code. (Do not share!)
379379
syncSiteSettings=Saved site settings
380380
syncStart=I am new to Sync
381381
syncTitle=Brave Sync
382-
syncTitleMessage=Sync encrypted browser data between your devices securely and privately using Brave Sync.
382+
syncTitleMessage=This version of Sync is deprecated. You can clear any existing data you have
383383
tabCloseAction=When closing an active tab:
384384
tabCloseActionLastActive=Select the last viewed tab
385385
tabCloseActionNext=Select the next tab

app/renderer/components/preferences/syncTab.js

+10-21
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class SyncTab extends ImmutableComponent {
112112
l10nId='syncStart'
113113
testId='syncStartButton'
114114
onClick={this.showSyncStart.bind(this)}
115+
disabled
115116
/>
116117
<BrowserButton groupedItem secondaryColor
117118
l10nId='syncAdd'
@@ -130,6 +131,7 @@ class SyncTab extends ImmutableComponent {
130131
prefKey={settings.SYNC_ENABLED}
131132
settings={this.props.settings}
132133
onChangeSetting={this.toggleSync}
134+
disabled
133135
/>
134136
<div className={css(styles.device__item)}>
135137
<span className={css(styles.device__syncDeviceLabel)} data-l10n-id='syncDeviceName' />
@@ -143,6 +145,7 @@ class SyncTab extends ImmutableComponent {
143145
l10nId='syncNewDevice'
144146
testId='syncNewDeviceButton'
145147
onClick={this.showSyncNewDevice.bind(this)}
148+
disabled
146149
/>
147150
</SettingsList>
148151
}
@@ -468,15 +471,6 @@ class SyncTab extends ImmutableComponent {
468471
: null
469472
}
470473
{
471-
!this.isSetup && this.props.syncStartOverlayVisible
472-
? <ModalOverlay
473-
title={'syncStart'}
474-
content={this.startOverlayContent}
475-
footer={this.startOverlayFooter}
476-
onHide={this.props.hideOverlay.bind(this, 'syncStart')} />
477-
: null
478-
}
479-
{
480474
!this.isSetup && this.props.syncAddOverlayVisible
481475
? <ModalOverlay
482476
title={'syncAdd'}
@@ -502,16 +496,11 @@ class SyncTab extends ImmutableComponent {
502496

503497
<div className={css(styles.settingsListContainerMargin__bottom)}>
504498
<span className='settingsListTitle' data-l10n-id='syncTitleMessage' />
505-
<a href='https://github.com/brave/sync/wiki/Design' rel='noopener' target='_blank'>
506-
<span className={cx({
507-
fa: true,
508-
'fa-question-circle': true
509-
})} />
510-
</a>
511499
<div className={cx({
512-
settingsListTitle: true,
513-
[css(styles.subText)]: true
514-
})} data-l10n-id='syncBetaMessage' />
500+
settingsListTitle: true
501+
})}>
502+
Please download the <a className={css(commonStyles.linkText)} href='https://brave.com/download'>new version of Brave for desktop</a>
503+
</div>
515504
{
516505
this.setupError
517506
? this.errorContent
@@ -530,19 +519,19 @@ class SyncTab extends ImmutableComponent {
530519
dataL10nId='syncBookmarks'
531520
prefKey={settings.SYNC_TYPE_BOOKMARK}
532521
settings={this.props.settings}
533-
onChangeSetting={this.props.onChangeSetting}
522+
disabled
534523
/>
535524
<SettingCheckbox
536525
dataL10nId='syncSiteSettings'
537526
prefKey={settings.SYNC_TYPE_SITE_SETTING}
538527
settings={this.props.settings}
539-
onChangeSetting={this.props.onChangeSetting}
528+
disabled
540529
/>
541530
<SettingCheckbox
542531
dataL10nId='syncHistory'
543532
prefKey={settings.SYNC_TYPE_HISTORY}
544533
settings={this.props.settings}
545-
onChangeSetting={this.props.onChangeSetting}
534+
disabled
546535
/>
547536
</SettingsList>
548537
</section>

0 commit comments

Comments
 (0)