tx broadcasting working

This commit is contained in:
Matias Alejo Garcia 2014-04-16 22:12:30 -03:00
commit df23125f5e
6 changed files with 41 additions and 14 deletions

View file

@ -15,7 +15,9 @@ angular.module('copay.home').controller('HomeController',
}
$scope.newAddr = function() {
console.log('[home.js.17:newAddr:]'); //TODO
var a = $rootScope.wallet.generateAddress();
console.log('[home.js.19]',a); //TODO
$scope.addrs.push({ addrStr: a.toString() });
};

View file

@ -14,11 +14,17 @@ angular.module('copay.signin').controller('SigninController',
};
var _setupUxHandlers = function(w) {
w.on('created', function(){
w.on('created', function() {
$location.path('peer');
$rootScope.wallet = w;
$rootScope.$digest();
});
w.on('refresh', function() {
console.log('[signin.js.23] RECEIVED REFRESH'); //TODO
$rootScope.$digest();
});
w.on('openError', function(){
$scope.loading = false;
$rootScope.flashMessage = {type:'error', message: 'Wallet not found'};