This commit is contained in:
JDonadio 2017-01-23 10:32:21 -03:00
commit 65d35a827a
2 changed files with 2 additions and 10 deletions

View file

@ -24,9 +24,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
$scope.recentTransactionsEnabled = { $scope.recentTransactionsEnabled = {
value: config.recentTransactions.enabled value: config.recentTransactions.enabled
}; };
// $scope.frequentlyUsedEnabled = {
// value: config.frequentlyUsed.enabled
// };
}; };
$scope.spendUnconfirmedChange = function() { $scope.spendUnconfirmedChange = function() {

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('buyandsellController', function($scope, $ionicHistory, $state, configService) { angular.module('copayApp.controllers').controller('buyandsellController', function($scope, $ionicHistory, configService) {
$scope.$on("$ionicView.beforeEnter", function(event, data) { $scope.$on("$ionicView.beforeEnter", function(event, data) {
configService.whenAvailable(function(config) { configService.whenAvailable(function(config) {
@ -8,12 +8,7 @@ angular.module('copayApp.controllers').controller('buyandsellController', functi
$scope.isGlideraEnabled = config.glidera.enabled; $scope.isGlideraEnabled = config.glidera.enabled;
if (!$scope.isCoinbaseEnabled && !$scope.isGlideraEnabled) if (!$scope.isCoinbaseEnabled && !$scope.isGlideraEnabled)
goHome(); $ionicHistory.goBack();
}); });
}); });
function goHome() {
$ionicHistory.removeBackView();
$state.go('tabs.home');
};
}); });