diff --git a/js/controllers/history.js b/js/controllers/history.js index 36903cfc3..7e64b7e9a 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -60,6 +60,9 @@ angular.module('copayApp.controllers').controller('HistoryController', _.each(res, function (r) { r.ts = r.minedTs || r.sentTs; + if (r.action === 'sent') { + r.actionList = controllerUtils.getActionList(r.peerActions); + } }); $scope.blockchain_txs = w.cached_txs = res; $scope.loading = false; diff --git a/js/controllers/send.js b/js/controllers/send.js index 4759efedf..fd9338194 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -79,7 +79,7 @@ angular.module('copayApp.controllers').controller('SendController', setTimeout(function() { $scope.loading = false; $rootScope.$digest(); - }, 0); + }, 1); } $scope.showAddressBook = function() { diff --git a/js/models/Wallet.js b/js/models/Wallet.js index d86abf89a..3e33f4ec4 100644 --- a/js/models/Wallet.js +++ b/js/models/Wallet.js @@ -2841,6 +2841,9 @@ Wallet.prototype.getTransactionHistory = function(cb) { tx.amount = tx.amountSat * satToUnit; tx.sentTs = proposal ? proposal.sentTs : undefined; tx.minedTs = !_.isNaN(tx.time) ? tx.time * 1000 : undefined; + tx.merchant = proposal ? proposal.merchant : undefined; + tx.peerActions = proposal ? proposal.peerActions : undefined; + tx.finallyRejected = proposal ? proposal.finallyRejected : undefined; }; if (addresses.length > 0) { diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index 9c581e897..e80df51aa 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -399,6 +399,10 @@ angular.module('copayApp.services') }); }; + root.getActionList = function(actions) { + return getActionList(actions); + }; + function getActionList(actions) { var peers = Object.keys(actions).map(function(i) { return { diff --git a/views/history.html b/views/history.html index d4ee065bb..6d48c023f 100644 --- a/views/history.html +++ b/views/history.html @@ -1,62 +1,74 @@
-

- Transaction Proposals ({{txs.length}})

-
+
+ + Loading... +
+
+ No transactions yet. +
+
+
+
+   + + + Unconfirmed + +
-
-
-
+
+ {{btx.amount| noFractionNumber}} {{$root.wallet.settings.unitName}} + {{btx.action}} +
+ +
+   + {{ (btx.action == 'received' ? 'on' : 'to') | translate }} {{btx.labelTo}} +
+ +
+ {{btx.comment}} +
+ +
-

No transactions proposals yet. -

- -
- -

- Last transactions - - - -

-
-
- No transactions yet.
-
-
-
-   - -
- -
- {{btx.amount| noFractionNumber}} {{$root.wallet.settings.unitName}} - {{btx.action}} -
- -
-   - {{ (btx.action == 'received' ? 'on' : 'to') | translate }} {{btx.labelTo}} -
- -
- {{btx.comment}} -
- -
- Unconfirmed - {{btx.confirmations || 0}} Confirmations - Confirmed -
- - -
- +
+ + + + + + + + + +
{{c.cId === $root.wallet.getMyCopayerId() ? 'Me' : $root.wallet.publicKeyRing.nicknameForCopayer(c.cId)}} + + + + + + + + + + +
+
+ Transaction ID: + + {{btx.txid}} + +