checks network match when joining a wallet

This commit is contained in:
Matias Alejo Garcia 2014-06-09 21:00:28 -03:00
commit 4ae3748414
5 changed files with 26 additions and 5 deletions

View file

@ -57,6 +57,8 @@ angular.module('copayApp.controllers').controller('SigninController',
$rootScope.$flashMessage = { message: 'Can not find peer'};
else if (err === 'walletFull')
$rootScope.$flashMessage = { message: 'The wallet is full', type: 'error'};
else if (err === 'badNetwork')
$rootScope.$flashMessage = { message: 'The wallet your are trying to join uses a different Bitcoin Network. Check your settings.', type: 'error'};
else if (err === 'badSecret')
$rootScope.$flashMessage = { message: 'Bad secret secret string', type: 'error'};
else