Wallet/js/controllers/send.js
Matias Alejo Garcia b2508b7195 fix wallet updates
2014-04-18 13:20:35 -03:00

20 lines
541 B
JavaScript

'use strict';
angular.module('copay.send').controller('SendController',
function($scope, $rootScope, $location, Socket, controllerUtils) {
$scope.title = 'Send';
if (!$rootScope.wallet || !$rootScope.wallet.id) {
$location.path('signin');
}
else {
controllerUtils.handleTransactionByAddress($scope);
}
$scope.sendTest = function() {
var w = $rootScope.wallet;
w.createTx( 'mimoZNLcP2rrMRgdeX5PSnR7AjCqQveZZ4', '12345',function() {
$rootScope.$digest();
});
};
});