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

Commit 27de916

Browse files
authored
Merge pull request #6060 from cezaraugusto/feature/preferences/5913
Make addFunds open adjacent to Preferences tab
2 parents 4651b19 + deb375e commit 27de916

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/about/preferences.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ class BitcoinDashboard extends ImmutableComponent {
317317
openBuyURLTab () {
318318
// close parent dialog
319319
this.props.hideParentOverlay()
320-
// open the new buyURL frame
321-
aboutActions.newFrame({ location: this.ledgerData.get('buyURL') }, true)
322320
}
323321
get ledgerData () {
324322
return this.props.ledgerData
@@ -328,8 +326,7 @@ class BitcoinDashboard extends ImmutableComponent {
328326
}
329327
get bitcoinPurchaseButton () {
330328
if (!this.ledgerData.get('buyURLFrame')) return <Button l10nId='add' className='primaryButton' onClick={this.props.showOverlay.bind(this)} />
331-
// should also do this.props.hideParentalOverlay
332-
return <Button l10nId='add' className='primaryButton' onClick={this.openBuyURLTab} />
329+
return <a href={this.ledgerData.get('buyURL')} target='_blank' onClick={this.openBuyURLTab}><Button l10nId='add' className='primaryButton' /></a>
333330
}
334331
get qrcodeOverlayContent () {
335332
return <div>

0 commit comments

Comments
 (0)