From 5e0b6793b26abb513c080fb92a9cf2f2728a4e62 Mon Sep 17 00:00:00 2001 From: yan Date: Thu, 25 Aug 2016 15:51:58 -0700 Subject: [PATCH] Show friendly message if wallet address & paymentURL are not available Also fix vertical alignment of funds select box. Auditors: @mrose17 --- .../locales/en-US/preferences.properties | 1 + js/about/preferences.js | 30 +++++++++++-------- less/about/preferences.less | 4 +++ 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/app/extensions/brave/locales/en-US/preferences.properties b/app/extensions/brave/locales/en-US/preferences.properties index d58d2bd9b46..8d022d88002 100644 --- a/app/extensions/brave/locales/en-US/preferences.properties +++ b/app/extensions/brave/locales/en-US/preferences.properties @@ -42,6 +42,7 @@ bitcoinQR=Brave wallet QR code: bitcoinCopyAddress=Copy Bitcoin address to clipboard bitcoinVisitAccount=Transfer BTC bitcoinBalance=Please transfer:  +bitcoinWalletNotAvailable=Wallet information not available. :( usd=$ done=Done enable=Enable diff --git a/js/about/preferences.js b/js/about/preferences.js index e7b38e56c3d..3062b389109 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -295,21 +295,27 @@ class BitcoinDashboard extends ImmutableComponent {
- { - this.ledgerData.get('hasBitcoinHandler') + this.ledgerData.get('address') && this.ledgerData.get('paymentURL') ?
- -
diff --git a/less/about/preferences.less b/less/about/preferences.less index 490ac17e9cf..f9afc6f3d1d 100644 --- a/less/about/preferences.less +++ b/less/about/preferences.less @@ -751,3 +751,7 @@ table.sortableTable { margin-left: 15px; } } + +#fundsSelectBox { + margin-top: 32px; +}