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) {
|
||||
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
||||
if (processName == 'Comprando Vale-presente' && !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('Comprando Vale-presente', 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('Comprando Vale-presente', 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('Comprando Vale-presente', 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('Comprando Vale-presente', true, statusChangeHandler);
|
||||
ongoingProcess.set('Comprando Vale-Presente', true, statusChangeHandler);
|
||||
publishAndSign($scope.wallet, createdTx, function() {}, function(err, txSent) {
|
||||
if (err) {
|
||||
ongoingProcess.set('Comprando Vale-presente', false, statusChangeHandler);
|
||||
ongoingProcess.set('Comprando Vale-Presente', false, statusChangeHandler);
|
||||
showError(gettextCatalog.getString('Could not send transaction'), err);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<i class="icon big-icon-svg">
|
||||
<div class="bg icon-amazon"></div>
|
||||
</i>
|
||||
<span>Vales-Presente do Mercado Livre Brasil</span>
|
||||
<span>Vale-Presente do Mercado Livre Brasil</span>
|
||||
</div>
|
||||
<div class="amount-label">
|
||||
<div class="amount">{{amountUnitStr}}</div>
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
Details
|
||||
</div>
|
||||
<div class="item">
|
||||
<span translate>Gift card</span>
|
||||
<span translate>Gift Card</span>
|
||||
<span class="item-note">
|
||||
{{amount | currency:'$ ':2}}<span ng-if="amount"> {{currencyIsoCode}}</span>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<div ng-show="card.cardStatus == 'active'">
|
||||
<div class="redeem-pin" copy-to-clipboard="card.pin">{{card.pin}}</div>
|
||||
<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
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue