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();
};