diff --git a/src/js/controllers/buyMercadoLibre.js b/src/js/controllers/buyMercadoLibre.js index 2bd96ed55..9df04fbc9 100644 --- a/src/js/controllers/buyMercadoLibre.js +++ b/src/js/controllers/buyMercadoLibre.js @@ -54,7 +54,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f var statusChangeHandler = function(processName, showName, isOn) { $log.debug('statusChangeHandler: ', processName, showName, isOn); - if (processName == 'buyingGiftCard' && !isOn) { + if (processName == 'Comprando Vale-presente' && !isOn) { $scope.sendStatus = 'success'; $timeout(function() { $scope.$digest(); @@ -174,14 +174,14 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f $log.debug("creating gift card " + count); if (err) { $scope.sendStatus = ''; - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); giftCard = {}; giftCard.status = 'FAILURE'; } if (giftCard && giftCard.cardStatus && (giftCard.cardStatus != 'active' && giftCard.cardStatus != 'inactive' && giftCard.cardStatus != 'expired')) { $scope.sendStatus = ''; - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); giftCard = {}; giftCard.status = 'FAILURE'; } @@ -205,7 +205,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f newData['uuid'] = dataSrc.uuid; mercadoLibreService.savePendingGiftCard(newData, null, function(err) { - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); $log.debug("Saving new gift card with status: " + newData.status); $scope.mlGiftCard = newData; }); @@ -311,10 +311,10 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f return; } - ongoingProcess.set('buyingGiftCard', true, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', true, statusChangeHandler); publishAndSign($scope.wallet, createdTx, function() {}, function(err, txSent) { if (err) { - ongoingProcess.set('buyingGiftCard', false, statusChangeHandler); + ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler); showError(gettextCatalog.getString('Could not send transaction'), err); return; } diff --git a/src/js/services/mercadoLibreService.js b/src/js/services/mercadoLibreService.js index 80263a961..ed5e594ee 100644 --- a/src/js/services/mercadoLibreService.js +++ b/src/js/services/mercadoLibreService.js @@ -26,14 +26,14 @@ angular.module('copayApp.services').factory('mercadoLibreService', function($htt var homeItem = { name: 'mercadoLibre', - title: 'Mercado Livre Brazil Gift Cards', + title: 'Vales-presente do Mercado Livre Brasil', icon: 'icon-ml', sref: 'tabs.giftcards.mercadoLibre', }; var nextStepItem = { name: 'mercadoLibre', - title: 'Buy Mercado Livre Brazil Gift Cards', + title: 'Vales-presente do Mercado Livre Brasil', icon: 'icon-ml', sref: 'tabs.giftcards.mercadoLibre', }; diff --git a/src/sass/views/tab-home.scss b/src/sass/views/tab-home.scss index 99dc0f4da..d49c5ad4f 100644 --- a/src/sass/views/tab-home.scss +++ b/src/sass/views/tab-home.scss @@ -19,7 +19,8 @@ } .icon-ml { background-image: url("../img/mercado-libre/icon-ml.svg"); - height: 27px; + background-position: center; + background-size: 85%; } .bg { &.wallet { diff --git a/www/views/buyMercadoLibre.html b/www/views/buyMercadoLibre.html index 322259a01..5145b2b43 100644 --- a/www/views/buyMercadoLibre.html +++ b/www/views/buyMercadoLibre.html @@ -16,7 +16,7 @@ - Mercado Livre Brazil Gift Cards + Vales-presente do Mercado Livre Brasil