WIP for automatic network join

This commit is contained in:
Manuel Araoz 2014-04-18 14:40:16 -03:00
commit d62dbeffca
12 changed files with 73 additions and 76 deletions

View file

@ -33,7 +33,6 @@ angular.module('copay.setup').controller('SetupController',
};
var w = walletFactory.create(opts);
controllerUtils.setupUxHandlers(w);
w.netStart();
};
});

View file

@ -22,7 +22,6 @@ angular.module('copay.signin').controller('SigninController',
var w = walletFactory.open(walletId);
controllerUtils.setupUxHandlers(w);
w.netStart();
};
$scope.join = function(cid) {
@ -31,10 +30,7 @@ angular.module('copay.signin').controller('SigninController',
controllerUtils.onError($scope);
$rootScope.$digest();
});
walletFactory.connectTo(cid, function(w) {
controllerUtils.setupUxHandlers(w);
w.netStart();
});
walletFactory.connectTo(cid, $scope.open.bind($scope));
};