Merge pull request #115 from Bitcoin-com/wallet/task/324

Improvement - 324 - Remove "Bitcoin Core Wallet" toggle entirely.
This commit is contained in:
Sam Cheng Hung 2018-05-16 13:57:05 +08:00 committed by GitHub
commit 12f021979f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 7 additions and 106 deletions

View file

@ -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;
});
});
});