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

Commit

Permalink
Need new strings to handle overdue payments
Browse files Browse the repository at this point in the history
Fixes #7078
  • Loading branch information
mrose17 committed Mar 7, 2017
1 parent 83c55eb commit 8e12037
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/extensions/brave/locales/en-US/preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ bitcoin=Bitcoin
bitcoinAdd=Use your existing Bitcoin wallet/account
bitcoinAddDescription=Use any BTC wallet that can transfer Bitcoin to your Brave wallet.
bitcoinBuy=Buy Bitcoin
noPaymentHistory=Your first contribution will be {{reconcileDate}}
noPaymentHistory=Your first contribution will be {{reconcileDate}}.
noPaymentDueHistory=Your first contribution is due.
noPaymentOverDueHistory=Your first contribution is overdue.
viewPaymentHistory=View Payment History…
paymentHistoryTitle=Your Payment History
paymentHistoryFooterText=Your next contribution is {{reconcileDate}}.
Expand Down Expand Up @@ -198,7 +200,7 @@ ledgerRecoveryFailedTitle=Recovery Failed
ledgerRecoveryFailedMessage=Please re-enter keys or try different keys.
ledgerRecoveryNetworkFailedTitle=Network Error
ledgerRecoveryNetworkFailedMessage=Please check your internet connection and try again.
ledgerRecoveryContent=The balance of the recovered wallet will be transferred to your new Brave wallet. The old wallet will still exist as an empty wallet.
ledgerRecoveryContent=Your previous wallet will now be used. Your new wallet will be discarded.
ledgerBackupTitle=Backup your Brave wallet
ledgerBackupContent=Below, you will find the anonymized recovery keys that are required if you ever lose access to this computer.
minimumPageTimeSetting=Minimum page time before logging a visit
Expand Down
6 changes: 6 additions & 0 deletions app/renderer/components/preferences/paymentsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ class PaymentsTab extends ImmutableComponent {
return null
} else if (!walletHasTransactions) {
buttonText = 'noPaymentHistory'
const now = new Date().getTime()
const timestamp = this.props.ledgerData.get('reconcileStamp')
if (timestamp <= now) {
buttonText = (timestamp <= (now - (24 * 60 * 60 * 1000)))
? 'noPaymentOverDueHistory' : 'noPaymentDueHistory'
}
} else {
buttonText = 'viewPaymentHistory'
}
Expand Down

0 comments on commit 8e12037

Please sign in to comment.