MeLi: Fix typos
This commit is contained in:
parent
7571a7b248
commit
da81282143
3 changed files with 9 additions and 9 deletions
|
|
@ -54,7 +54,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f
|
||||||
|
|
||||||
var statusChangeHandler = function(processName, showName, isOn) {
|
var statusChangeHandler = function(processName, showName, isOn) {
|
||||||
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
||||||
if (processName == 'Comprando Vale-presente' && !isOn) {
|
if (processName == 'Comprando Vale-Presente' && !isOn) {
|
||||||
$scope.sendStatus = 'success';
|
$scope.sendStatus = 'success';
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$digest();
|
$scope.$digest();
|
||||||
|
|
@ -174,14 +174,14 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f
|
||||||
$log.debug("creating gift card " + count);
|
$log.debug("creating gift card " + count);
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.sendStatus = '';
|
$scope.sendStatus = '';
|
||||||
ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler);
|
ongoingProcess.set('Comprando Vale-Presente', false, statusChangeHandler);
|
||||||
giftCard = {};
|
giftCard = {};
|
||||||
giftCard.status = 'FAILURE';
|
giftCard.status = 'FAILURE';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (giftCard && giftCard.cardStatus && (giftCard.cardStatus != 'active' && giftCard.cardStatus != 'inactive' && giftCard.cardStatus != 'expired')) {
|
if (giftCard && giftCard.cardStatus && (giftCard.cardStatus != 'active' && giftCard.cardStatus != 'inactive' && giftCard.cardStatus != 'expired')) {
|
||||||
$scope.sendStatus = '';
|
$scope.sendStatus = '';
|
||||||
ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler);
|
ongoingProcess.set('Comprando Vale-Presente', false, statusChangeHandler);
|
||||||
giftCard = {};
|
giftCard = {};
|
||||||
giftCard.status = 'FAILURE';
|
giftCard.status = 'FAILURE';
|
||||||
}
|
}
|
||||||
|
|
@ -205,7 +205,7 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f
|
||||||
newData['uuid'] = dataSrc.uuid;
|
newData['uuid'] = dataSrc.uuid;
|
||||||
|
|
||||||
mercadoLibreService.savePendingGiftCard(newData, null, function(err) {
|
mercadoLibreService.savePendingGiftCard(newData, null, function(err) {
|
||||||
ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler);
|
ongoingProcess.set('Comprando Vale-Presente', false, statusChangeHandler);
|
||||||
$log.debug("Saving new gift card with status: " + newData.status);
|
$log.debug("Saving new gift card with status: " + newData.status);
|
||||||
$scope.mlGiftCard = newData;
|
$scope.mlGiftCard = newData;
|
||||||
});
|
});
|
||||||
|
|
@ -311,10 +311,10 @@ angular.module('copayApp.controllers').controller('buyMercadoLibreController', f
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ongoingProcess.set('Comprando Vale-presente', true, statusChangeHandler);
|
ongoingProcess.set('Comprando Vale-Presente', true, statusChangeHandler);
|
||||||
publishAndSign($scope.wallet, createdTx, function() {}, function(err, txSent) {
|
publishAndSign($scope.wallet, createdTx, function() {}, function(err, txSent) {
|
||||||
if (err) {
|
if (err) {
|
||||||
ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler);
|
ongoingProcess.set('Comprando Vale-Presente', false, statusChangeHandler);
|
||||||
showError(gettextCatalog.getString('Could not send transaction'), err);
|
showError(gettextCatalog.getString('Could not send transaction'), err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<i class="icon big-icon-svg">
|
<i class="icon big-icon-svg">
|
||||||
<div class="bg icon-amazon"></div>
|
<div class="bg icon-amazon"></div>
|
||||||
</i>
|
</i>
|
||||||
<span>Vales-Presente do Mercado Livre Brasil</span>
|
<span>Vale-Presente do Mercado Livre Brasil</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="amount-label">
|
<div class="amount-label">
|
||||||
<div class="amount">{{amountUnitStr}}</div>
|
<div class="amount">{{amountUnitStr}}</div>
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
Details
|
Details
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span translate>Gift card</span>
|
<span translate>Gift Card</span>
|
||||||
<span class="item-note">
|
<span class="item-note">
|
||||||
{{amount | currency:'$ ':2}}<span ng-if="amount"> {{currencyIsoCode}}</span>
|
{{amount | currency:'$ ':2}}<span ng-if="amount"> {{currencyIsoCode}}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<div ng-show="card.cardStatus == 'active'">
|
<div ng-show="card.cardStatus == 'active'">
|
||||||
<div class="redeem-pin" copy-to-clipboard="card.pin">{{card.pin}}</div>
|
<div class="redeem-pin" copy-to-clipboard="card.pin">{{card.pin}}</div>
|
||||||
<button class="button-redeem"
|
<button class="button-redeem"
|
||||||
ng-click="openExternalLink('https://www.mercadolivre.com.br/redeem?pin=' + card.pin)" translate>
|
ng-click="openExternalLink('https://www.mercadolivre.com.br')" translate>
|
||||||
Redeem now
|
Redeem now
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue