mirror of https://github.com/BTCPrivate/copay.git
refactor
This commit is contained in:
parent
c3f2230f33
commit
65d35a827a
|
@ -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() {
|
||||
|
|
|
@ -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');
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue