diff --git a/src/js/controllers/advancedSettings.js b/src/js/controllers/advancedSettings.js index 6f8712544..22256de57 100644 --- a/src/js/controllers/advancedSettings.js +++ b/src/js/controllers/advancedSettings.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $rootScope, $log, $window, lodash, configService, uxLanguage, platformInfo, pushNotificationsService, profileService, feeService, storageService, $ionicHistory, $timeout) { +angular.module('copayApp.controllers').controller('advancedSettingsController', function($scope, $rootScope, $log, $window, lodash, configService, uxLanguage, platformInfo, pushNotificationsService, profileService, feeService, storageService, $ionicHistory, $timeout, $ionicScrollDelegate) { var updateConfig = function() { @@ -27,14 +27,19 @@ angular.module('copayApp.controllers').controller('advancedSettingsController', $scope.frequentlyUsedEnabled = { value: config.frequentlyUsed.enabled }; - $scope.developmentUtilitiesEnabled = { - value: false - }; }; + $scope.global = $rootScope; + if(!$scope.global.developmentUtilitiesEnabled){ + $scope.global.developmentUtilitiesEnabled = { + value: false + }; + } + $scope.toggledDevelopmentUtils = function (){ - if($scope.developmentUtilitiesEnabled.value){ + if($scope.global.developmentUtilitiesEnabled.value){ $log.debug('User enabled development utilities.'); + $ionicScrollDelegate.resize(); } else { $log.debug('User disabled development utilities.'); } @@ -54,6 +59,9 @@ angular.module('copayApp.controllers').controller('advancedSettingsController', $timeout(function(){ $scope.feedbackCardActivating = false; $scope.feedbackCardActivated = true; + $timeout(function(){ + $scope.feedbackCardActivated = false; + }, 10000); }, 500); }); }); diff --git a/www/views/advancedSettings.html b/www/views/advancedSettings.html index 41c417d26..c95fcfc60 100644 --- a/www/views/advancedSettings.html +++ b/www/views/advancedSettings.html @@ -51,7 +51,7 @@ If enabled, the Recent Transactions card - a list of transactions occuring across all wallets - will appear in the Home tab. - + Development Utilities
@@ -67,7 +67,7 @@ If enabled, the Frequently Used card - a list of the most commonly chosen recipients - will appear in the Send tab.
--> -
+
Development Utilities
@@ -77,13 +77,13 @@
Feedback Card - - -