refactor
This commit is contained in:
parent
c3f2230f33
commit
65d35a827a
2 changed files with 2 additions and 10 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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');
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue