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

Commit

Permalink
fix(Transaction): don't show historical value for non-USD and very re…
Browse files Browse the repository at this point in the history
…cent transactions
  • Loading branch information
Sjors committed Jun 14, 2016
1 parent 993a49a commit b9ea62c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/transaction-description.jade
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.flex-1.hidden-sm.hidden-xs.pointer(ng-click="tx.toggled = !tx.toggled")
div
.flex-2.flex-column.flex-align-end.mtvl
.flex-row
.flex-row(ng-show="settings.currency.code === 'USD' && tx.confirmations > 5")
p.mbn(translate="VALUE_AT_SEND" ng-show=":: tx.txType === 'sent' || tx.txType === 'transfer'")
p.mbn(translate="VALUE_WHEN_RECEIVED" ng-show=":: tx.txType === 'received'")
| : 
Expand Down
2 changes: 2 additions & 0 deletions assets/js/directives/transaction-description.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ function transactionDescription ($translate, Wallet) {
(tx.txType === 'sent' && tx.fromWatchOnly);
};

scope.settings = Wallet.settings;

scope.txDirection = scope.getTxDirection(scope.tx.txType);
scope.txClass = scope.getTxClass(scope.tx.txType);
scope.txWatchOnly = scope.getTxWatchOnly(scope.tx);
Expand Down

0 comments on commit b9ea62c

Please sign in to comment.