This commit is contained in:
JDonadio 2017-01-23 10:32:21 -03:00
parent c3f2230f33
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 = {
value: config.recentTransactions.enabled
};
// $scope.frequentlyUsedEnabled = {
// value: config.frequentlyUsed.enabled
// };
};
$scope.spendUnconfirmedChange = function() {

View File

@ -1,6 +1,6 @@
'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) {
configService.whenAvailable(function(config) {
@ -8,12 +8,7 @@ angular.module('copayApp.controllers').controller('buyandsellController', functi
$scope.isGlideraEnabled = config.glidera.enabled;
if (!$scope.isCoinbaseEnabled && !$scope.isGlideraEnabled)
goHome();
$ionicHistory.goBack();
});
});
function goHome() {
$ionicHistory.removeBackView();
$state.go('tabs.home');
};
});