Removes old _NextStep code
This commit is contained in:
parent
a5142b902c
commit
f78f937c0f
2 changed files with 1 additions and 17 deletions
|
|
@ -20,8 +20,6 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
|
||||||
popupService.showAlert(gettextCatalog.getString('Error updating Debit Cards'), err);
|
popupService.showAlert(gettextCatalog.getString('Error updating Debit Cards'), err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Set flag for nextStep
|
|
||||||
storageService.setNextStep('BitpayCard', 'true', function(err) {});
|
|
||||||
$ionicHistory.nextViewOptions({
|
$ionicHistory.nextViewOptions({
|
||||||
disableAnimate: true
|
disableAnimate: true
|
||||||
});
|
});
|
||||||
|
|
@ -83,9 +81,7 @@ angular.module('copayApp.controllers').controller('bitpayCardIntroController', f
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
storageService.setNextStep('BitpayCard', 'true', function(err) {
|
$state.go('tabs.home');
|
||||||
$state.go('tabs.home');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -324,18 +324,6 @@ angular.module('copayApp.services')
|
||||||
storage.remove('addressbook-' + network, cb);
|
storage.remove('addressbook-' + network, cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
root.setNextStep = function(service, status, cb) {
|
|
||||||
storage.set('nextStep-' + service, status, cb);
|
|
||||||
};
|
|
||||||
|
|
||||||
root.getNextStep = function(service, cb) {
|
|
||||||
storage.get('nextStep-' + service, cb);
|
|
||||||
};
|
|
||||||
|
|
||||||
root.removeNextStep = function(service, cb) {
|
|
||||||
storage.remove('nextStep-' + service, cb);
|
|
||||||
};
|
|
||||||
|
|
||||||
root.setLastCurrencyUsed = function(lastCurrencyUsed, cb) {
|
root.setLastCurrencyUsed = function(lastCurrencyUsed, cb) {
|
||||||
storage.set('lastCurrencyUsed', lastCurrencyUsed, cb)
|
storage.set('lastCurrencyUsed', lastCurrencyUsed, cb)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue