From e5742e82f77d59c9e1d209e7ff2a3f6cdb6ae5ee Mon Sep 17 00:00:00 2001 From: Marty Alcala Date: Fri, 21 Oct 2016 18:06:51 -0400 Subject: [PATCH] add proposal timeline --- src/js/controllers/modals/txDetails.js | 32 +++++++++++++++- www/views/modals/tx-details.html | 52 +++++++++++++------------- 2 files changed, 56 insertions(+), 28 deletions(-) diff --git a/src/js/controllers/modals/txDetails.js b/src/js/controllers/modals/txDetails.js index 97d41ca2c..59a23f711 100644 --- a/src/js/controllers/modals/txDetails.js +++ b/src/js/controllers/modals/txDetails.js @@ -70,7 +70,37 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio }); }); }); - }; + } + + // function initActionList() { + // $scope.actionList = []; + // var tx = $scope.btx; + // + // if (!$scope.isShared) return; + // + // var actionDescriptions = { + // created: gettextCatalog.getString('Proposal Created'), + // accept: gettextCatalog.getString('Accepted'), + // reject: gettextCatalog.getString('Rejected'), + // broadcasted: gettextCatalog.getString('Broadcasted'), + // }; + // + // $scope.actionList.push({ + // type: 'created', + // time: tx.createdOn, + // description: actionDescriptions['created'], + // by: tx.creatorName + // }); + // + // lodash.each(tx.actions, function(action) { + // $scope.actionList.push({ + // type: action.type, + // time: action.createdOn, + // description: actionDescriptions[action.type], + // by: action.copayerName + // }); + // }); + // } function initActionList() { $scope.actionList = []; diff --git a/www/views/modals/tx-details.html b/www/views/modals/tx-details.html index a977cdf2d..a9065e4ed 100644 --- a/www/views/modals/tx-details.html +++ b/www/views/modals/tx-details.html @@ -69,36 +69,34 @@ {{btx.feeStr}} + +
+
Timeline
+
+
+
+
!
+
{{actionList.length - $index}}
+
+ +
+ + + +
+
+
+
+ + - - Click to pay - + + - - Slide to pay - - - Payment Sent - Proposal Created - - - - -