Fix wording. Error handler improved

This commit is contained in:
Gustavo Maximiliano Cortez 2017-07-26 16:13:57 -03:00
commit e7f8e2c235
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
8 changed files with 44 additions and 24 deletions

View file

@ -110,7 +110,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f
var outputs = [];
var toAddress = invoice.bitcoinAddress;
var amountSat = parseInt(invoice.btcDue * 100000000); // BTC to Satoshi
var amountSat = parseInt((invoice.btcDue * 100000000).toFixed(0)); // BTC to Satoshi
outputs.push({
'toAddress': toAddress,

View file

@ -26,14 +26,14 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt
var homeItem = {
name: 'mercadoLibre',
title: 'Mercado Libre',
title: 'Mercado Livre Brazil Gift Cards',
icon: 'icon-ml',
sref: 'tabs.giftcards.mercadoLibre',
};
var nextStepItem = {
name: 'mercadoLibre',
title: 'Buy Mercado Libre Gift Cards',
title: 'Buy Mercado Livre Brazil Gift Cards',
icon: 'icon-ml',
sref: 'tabs.giftcards.mercadoLibre',
};
@ -112,7 +112,7 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt
$log.info('BitPay Create Invoice: SUCCESS');
return cb(null, data.data);
}, function(data) {
$log.error('BitPay Create Invoice: ERROR ' + data.data.message);
$log.error('BitPay Create Invoice: ERROR', JSON.stringify(data.data));
return cb(data.data);
});
};
@ -122,8 +122,8 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt
$log.info('BitPay Get Invoice: SUCCESS');
return cb(null, data.data.data);
}, function(data) {
$log.error('BitPay Get Invoice: ERROR ' + data.data.error);
return cb(data.data.error);
$log.error('BitPay Get Invoice: ERROR', JSON.stringify(data.data));
return cb(data.data);
});
};
@ -140,7 +140,7 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt
$log.info('Mercado Libre Gift Card Create/Update: ' + status);
return cb(null, data.data);
}, function(data) {
$log.error('Mercado Libre Gift Card Create/Update: ', JSON.stringify(data.data));
$log.error('Mercado Libre Gift Card Create/Update: ERROR', JSON.stringify(data.data));
return cb(data.data);
});
};

View file

@ -41,7 +41,8 @@
}
.big-icon-svg > .bg {
height: 27px;
height: 28px;
box-shadow: none;
}
}
@ -145,6 +146,14 @@
}
}
#meli-list-cards {
img.item-logo {
width: auto;
height: auto;
border-radius: 0;
}
}
#meli-card {
.card-head {
margin: 20px 0;