mirror of https://github.com/BTCPrivate/copay.git
23 lines
601 B
JavaScript
23 lines
601 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 {
|
|
var socket = Socket($scope);
|
|
socket.on('connect', controllerUtils.handleTransactionByAddress($scope));
|
|
|
|
}
|
|
|
|
$scope.sendTest = function() {
|
|
var w = $rootScope.wallet;
|
|
w.createTx( 'mimoZNLcP2rrMRgdeX5PSnR7AjCqQveZZ4', '12345',function() {
|
|
$rootScope.$digest();
|
|
});
|
|
};
|
|
});
|