Merge pull request #115 from Bitcoin-com/wallet/task/324
Improvement - 324 - Remove "Bitcoin Core Wallet" toggle entirely.
This commit is contained in:
commit
12f021979f
11 changed files with 7 additions and 106 deletions
|
|
@ -13,10 +13,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
|||
$scope.hideNextSteps = {
|
||||
value: config.hideNextSteps.enabled
|
||||
};
|
||||
$scope.displayBitcoinCoreEnabled = {
|
||||
value: config.displayBitcoinCore.enabled
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
$scope.spendUnconfirmedChange = function() {
|
||||
|
|
@ -52,17 +48,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
|||
});
|
||||
};
|
||||
|
||||
$scope.displayBitcoinCoreChange = function() {
|
||||
var opts = {
|
||||
displayBitcoinCore: {
|
||||
enabled: $scope.displayBitcoinCoreEnabled.value
|
||||
}
|
||||
};
|
||||
configService.set(opts, function(err) {
|
||||
if (err) $log.debug(err);
|
||||
});
|
||||
};
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$scope.isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
||||
updateConfig();
|
||||
|
|
|
|||
|
|
@ -83,9 +83,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
|
||||
$scope.$on("$ionicView.enter", function(event, data) {
|
||||
$ionicNavBarDelegate.showBar(true);
|
||||
updateAllWallets(function() {
|
||||
profileService.initBitcoinCoreDisplay();
|
||||
});
|
||||
updateAllWallets();
|
||||
|
||||
addressbookService.list(function(err, ab) {
|
||||
if (err) $log.error(err);
|
||||
|
|
@ -126,8 +124,6 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
$scope.nextStepsItems = nextStepsService.get();
|
||||
}
|
||||
|
||||
$scope.displayBitcoinCore = config.displayBitcoinCore.enabled;
|
||||
|
||||
$scope.showServices = true;
|
||||
pushNotificationsService.init();
|
||||
firebaseEventsService.init();
|
||||
|
|
@ -316,9 +312,4 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
updateAllWallets();
|
||||
};
|
||||
|
||||
$rootScope.$on('Local/SettingsUpdated', function(e, walletId) {
|
||||
configService.whenAvailable(function(config) {
|
||||
$scope.displayBitcoinCore = config.displayBitcoinCore.enabled;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
|||
coin: v.coin,
|
||||
network: v.network,
|
||||
balanceString: v.cachedBalance,
|
||||
displayWallet: v.coin == 'btc' ? config.displayBitcoinCore.enabled : true,
|
||||
getAddress: function(cb) {
|
||||
walletService.getAddress(v, false, cb);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue