insight REST API retry

This commit is contained in:
Matias Alejo Garcia 2014-06-05 12:18:54 -03:00
commit da7c2c88db
8 changed files with 65 additions and 48 deletions

View file

@ -35,19 +35,15 @@ angular.module('copayApp.controllers').controller('HeaderController',
// Initialize alert notification (not show when init wallet)
$rootScope.txAlertCount = 0;
$rootScope.insightError = -1;
$rootScope.$watch('blockChainStatus', function(status) {
var h = config.blockchain.host + ':' + config.blockchain.port;
if (status === 'error')
$rootScope.insightError = 1;
else
if (status === 'restored') {
$rootScope.insightError = 0;
$rootScope.$flashMessage = {
type: 'success',
message: 'Networking Restored',
};
}
$rootScope.$watch('insightError', function(status) {
if (status === 0) {
$rootScope.$flashMessage = {
type: 'success',
message: 'Networking Restored :)',
};
}
});

View file

@ -9,6 +9,8 @@ angular.module('copayApp.controllers').controller('ImportController',
var w, errMsg;
try {
w = walletFactory.fromEncryptedObj(encryptedObj, passphrase);
console.log('[import.js.12]',w.toObj()); //TODO
} catch(e) {
errMsg = e.message;
}