refactor txp details

This commit is contained in:
Gabriel Bazán 2016-09-20 10:02:28 -03:00
commit 43dfcba55c
6 changed files with 236 additions and 95 deletions

View file

@ -59,6 +59,27 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
}
var setPendingTxps = function(txps) {
/* Uncomment to test multiple outputs */
// var txp = {
// message: 'test multi-output',
// fee: 1000,
// createdOn: new Date() / 1000,
// outputs: [],
// wallet: wallet
// };
//
// function addOutput(n) {
// txp.outputs.push({
// amount: 600,
// toAddress: '2N8bhEwbKtMvR2jqMRcTCQqzHP6zXGToXcK',
// message: 'output #' + (Number(n) + 1)
// });
// };
// lodash.times(15, addOutput);
// txps.push(txp);
if (!txps) {
$scope.txps = [];
return;