Rename variables
This commit is contained in:
parent
5495f60306
commit
cb1ff562bc
3 changed files with 2 additions and 3 deletions
|
|
@ -17,7 +17,6 @@ angular.module('copayApp.controllers').controller('preferencesCoinbaseController
|
||||||
|
|
||||||
$scope.$on("$ionicView.enter", function(event, data){
|
$scope.$on("$ionicView.enter", function(event, data){
|
||||||
coinbaseService.setCredentials();
|
coinbaseService.setCredentials();
|
||||||
$scope.network = coinbaseService.getEnvironment();
|
|
||||||
ongoingProcess.set('connectingCoinbase', true);
|
ongoingProcess.set('connectingCoinbase', true);
|
||||||
coinbaseService.init(function(err, data) {
|
coinbaseService.init(function(err, data) {
|
||||||
if (err || lodash.isEmpty(data)) {
|
if (err || lodash.isEmpty(data)) {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
||||||
|
|
||||||
if ($scope.coinbaseEnabled) {
|
if ($scope.coinbaseEnabled) {
|
||||||
coinbaseService.setCredentials();
|
coinbaseService.setCredentials();
|
||||||
storageService.getCoinbaseToken(coinbaseService.getEnvironment(), function(err, token) {
|
storageService.getCoinbaseToken(coinbaseService.getNetwork(), function(err, token) {
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
$scope.coinbaseToken = token;
|
$scope.coinbaseToken = token;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
root.getEnvironment = function() {
|
root.getNetwork = function() {
|
||||||
return credentials.NETWORK;
|
return credentials.NETWORK;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue