2014-03-26 05:18:42 -07:00
|
|
|
'use strict';
|
|
|
|
|
2014-03-28 11:08:14 -07:00
|
|
|
angular.module('copay.transactions').controller('TransactionsController',
|
2014-03-26 05:18:42 -07:00
|
|
|
function($scope, $rootScope, $location) {
|
|
|
|
$scope.title = 'Transactions';
|
2014-03-26 13:56:11 -07:00
|
|
|
|
2014-03-26 14:07:28 -07:00
|
|
|
$scope.oneAtATime = true;
|
|
|
|
|
2014-04-15 08:52:28 -07:00
|
|
|
if (!$rootScope.wallet.id) {
|
2014-03-31 08:48:35 -07:00
|
|
|
$location.path('signin');
|
|
|
|
}
|
|
|
|
|
2014-03-26 13:56:11 -07:00
|
|
|
$scope.txsinput = [
|
|
|
|
{
|
|
|
|
fromAddr: "n3zUqNR7Bbbc4zJhPVj1vG2Lx66K3Xhzvb",
|
|
|
|
toAddr: "msvv2mDfE298s7boXwALq4Dqv77K3TWRZ1",
|
|
|
|
amount: 23.9982
|
|
|
|
},
|
|
|
|
{
|
|
|
|
fromAddr: "my9wnLwwUrwpNfEgSrWY62ymEGf1edKf4J",
|
|
|
|
toAddr: "monCusNiDuptf68rtr58hEjKpJt6cW6zwS",
|
|
|
|
amount: 2.22
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2014-04-15 11:25:55 -07:00
|
|
|
$scope.txsoutput = $rootScope.wallet.getTxProposals();
|
2014-03-26 05:18:42 -07:00
|
|
|
});
|