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

Make addFunds open adjacent to Preferences tab #6060

Merged
merged 1 commit into from
Dec 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ class BitcoinDashboard extends ImmutableComponent {
openBuyURLTab () {
// close parent dialog
this.props.hideParentOverlay()
// open the new buyURL frame
aboutActions.newFrame({ location: this.ledgerData.get('buyURL') }, true)
}
get ledgerData () {
return this.props.ledgerData
Expand All @@ -328,8 +326,7 @@ class BitcoinDashboard extends ImmutableComponent {
}
get bitcoinPurchaseButton () {
if (!this.ledgerData.get('buyURLFrame')) return <Button l10nId='add' className='primaryButton' onClick={this.props.showOverlay.bind(this)} />
// should also do this.props.hideParentalOverlay
return <Button l10nId='add' className='primaryButton' onClick={this.openBuyURLTab} />
return <a href={this.ledgerData.get('buyURL')} target='_blank' onClick={this.openBuyURLTab}><Button l10nId='add' className='primaryButton' /></a>
}
get qrcodeOverlayContent () {
return <div>
Expand Down