Merge pull request #188 from matiu/feature/peer-checking

Feature/peer checking
This commit is contained in:
Mario Colque 2014-04-25 10:27:06 -03:00
commit 6cb1b5a851
13 changed files with 206 additions and 145 deletions

View file

@ -14,7 +14,7 @@ angular.module('copay.signin').controller('SigninController',
$scope.open = function(walletId, opts) {
$scope.loading = true;
var w = walletFactory.open(walletId, opts);
controllerUtils.setupUxHandlers(w);
controllerUtils.startNetwork(w);
};
$scope.join = function(secret) {
@ -29,8 +29,13 @@ angular.module('copay.signin').controller('SigninController',
});
walletFactory.joinCreateSession(secret, function(w) {
console.log('[signin.js.33] joinCreateSession RETURN', w); //TODO
controllerUtils.setupUxHandlers(w);
if (w) {
controllerUtils.startNetwork(w);
}
else {
$scope.loading = false;
controllerUtils.onErrorDigest();
}
});
};
});