From 0798c6ed1ea98cee0234b1939792dd75004ad481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 29 Sep 2016 11:20:38 -0300 Subject: [PATCH] experimental feature disabled by default --- src/js/controllers/tab-home.js | 8 +++++--- src/js/services/configService.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index 0dec2cc7f..2d05b9263 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -117,6 +117,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', }); }); + if (!$scope.recentTransactionsEnabled) return; $scope.fetchingNotifications = true; profileService.getNotifications({ limit: 3 @@ -144,6 +145,9 @@ angular.module('copayApp.controllers').controller('tabHomeController', return; } wallet.status = status; + updateTxps(); + + if (!$scope.recentTransactionsEnabled) return; $scope.fetchingNotifications = true; profileService.getNotifications({ @@ -155,8 +159,6 @@ angular.module('copayApp.controllers').controller('tabHomeController', return; } $scope.notifications = notifications; - - updateTxps(); }) }); }; @@ -208,7 +210,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', var bitpayCardCache = function() { bitpayCardService.getCacheData(function(err, data) { - if (err || lodash.isEmpty(data)) return; + if (err ||  lodash.isEmpty(data)) return; $scope.bitpayCard = data; }); }; diff --git a/src/js/services/configService.js b/src/js/services/configService.js index f7728c6c5..19aa405a3 100644 --- a/src/js/services/configService.js +++ b/src/js/services/configService.js @@ -54,7 +54,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer //Experimental Features recentTransactions: { - enabled: true + enabled: false //disabled by default }, frequentlyUsed: {