processes names refactor

This commit is contained in:
Gabriel Bazán 2016-12-23 12:10:19 -03:00
commit 4d63fc71bd
4 changed files with 14 additions and 14 deletions

View file

@ -34,11 +34,11 @@ angular.module('copayApp.controllers').controller('amazonController',
};
$scope.updatePendingGiftCards = lodash.debounce(function() {
ongoingProcess.set('updateGiftCards', true);
ongoingProcess.set('updatingGiftCards', true);
amazonService.getPendingGiftCards(function(err, gcds) {
if (lodash.isEmpty(gcds)) {
$timeout(function() {
ongoingProcess.set('updateGiftCards', false);
ongoingProcess.set('updatingGiftCards', false);
}, 1000);
}
$timeout(function() {
@ -49,7 +49,7 @@ angular.module('copayApp.controllers').controller('amazonController',
lodash.forEach(gcds, function(dataFromStorage) {
if (++index == Object.keys(gcds).length) {
$timeout(function() {
ongoingProcess.set('updateGiftCards', false);
ongoingProcess.set('updatingGiftCards', false);
}, 1000);
}
if (dataFromStorage.status == 'PENDING') {