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

Commit 7666907

Browse files
authored
Merge pull request #4801 from willy-b/hide-advanced-settings-when-payments-disabled-4790
Hide Advanced Settings button when Brave Payments is disabled
2 parents 510f0b1 + b5b7ad2 commit 7666907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/about/preferences.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class PaymentsTab extends ImmutableComponent {
11771177
<span data-l10n-id='off' />
11781178
<SettingCheckbox dataL10nId='on' prefKey={settings.PAYMENTS_ENABLED} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
11791179
</div>
1180-
<Button l10nId='advancedSettings' className='whiteButton inlineButton' onClick={this.props.showOverlay.bind(this, 'advancedSettings')} />
1180+
{ this.enabled ? <Button l10nId='advancedSettings' className='whiteButton inlineButton' onClick={this.props.showOverlay.bind(this, 'advancedSettings')} /> : null }
11811181
</div>
11821182
</div>
11831183
{

0 commit comments

Comments
 (0)