mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5079 from cmgustavo/bug/storage-external-service-flag
Fix storage of the externalService flags
This commit is contained in:
commit
9120d70e11
|
@ -36,7 +36,7 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
|
||||||
popupService.showConfirm(title, msg, ok, cancel, function(res) {
|
popupService.showConfirm(title, msg, ok, cancel, function(res) {
|
||||||
if (res) {
|
if (res) {
|
||||||
// Set flag for nextStep
|
// Set flag for nextStep
|
||||||
storageService.setNextStep('BitpayCard', true, function(err) {});
|
storageService.setNextStep('BitpayCard', 'true', function(err) {});
|
||||||
// Save data
|
// Save data
|
||||||
bitpayCardService.setBitpayDebitCards(data, function(err) {
|
bitpayCardService.setBitpayDebitCards(data, function(err) {
|
||||||
if (err) return;
|
if (err) return;
|
||||||
|
|
|
@ -70,7 +70,7 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
|
||||||
});
|
});
|
||||||
|
|
||||||
// Show pending task from the UI
|
// Show pending task from the UI
|
||||||
storageService.setNextStep('AmazonGiftCards', true, function(err) {});
|
storageService.setNextStep('AmazonGiftCards', 'true', function(err) {});
|
||||||
};
|
};
|
||||||
|
|
||||||
root.getPendingGiftCards = function(cb) {
|
root.getPendingGiftCards = function(cb) {
|
||||||
|
|
|
@ -81,7 +81,7 @@ angular.module('copayApp.services').factory('glideraService', function($http, $l
|
||||||
$http(req).then(function(data) {
|
$http(req).then(function(data) {
|
||||||
$log.info('Glidera Authorization Access Token: SUCCESS');
|
$log.info('Glidera Authorization Access Token: SUCCESS');
|
||||||
// Show pending task from the UI
|
// Show pending task from the UI
|
||||||
storageService.setNextStep('BuyAndSell', true, function(err) {});
|
storageService.setNextStep('BuyAndSell', 'true', function(err) {});
|
||||||
return cb(null, data.data);
|
return cb(null, data.data);
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
$log.error('Glidera Authorization Access Token: ERROR ' + data.statusText);
|
$log.error('Glidera Authorization Access Token: ERROR ' + data.statusText);
|
||||||
|
|
Loading…
Reference in New Issue