m-of-n integration complete

This commit is contained in:
Manuel Araoz 2014-04-16 19:45:22 -03:00
commit 9df76b90fd
4 changed files with 14 additions and 9 deletions

View file

@ -31,12 +31,17 @@ angular.module('copay.setup').controller('SetupController',
requiredCopayers: requiredCopayers,
totalCopayers: totalCopayers
};
var w = walletFactory.create();
w.on('open', function(){
var w = walletFactory.create(opts);
w.on('created', function(){
$location.path('peer');
$rootScope.wallet = w;
$rootScope.$digest();
});
w.on('openError', function(){
$scope.loading = false;
$rootScope.flashMessage = {type:'error', message: 'Wallet not found'};
$location.path('signin');
});
w.netStart();
};

View file

@ -27,12 +27,7 @@ angular.module('copay.signin').controller('SigninController',
};
$scope.create = function() {
console.log('[signin.js.42:create:]'); //TODO
$scope.loading = true;
var w = walletFactory.create();
_setupUxHandlers(w);
w.netStart();
$location.path('setup');
};
$scope.open = function(walletId) {