remove unnecessary event

This commit is contained in:
JDonadio 2017-03-06 16:48:21 -03:00
commit 5f08ad236b
2 changed files with 0 additions and 9 deletions

View file

@ -59,14 +59,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
});
};
$scope.$on('updatePincodeOption', function(event) {
var config = configService.getSync();
$scope.usePincode = {
enabled: config.pincode ? config.pincode.enabled : false
};
$scope.$apply();
});
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isCordova = platformInfo.isCordova;
updateConfig();

View file

@ -77,7 +77,6 @@ angular.module('copayApp.controllers').controller('pincodeController', function(
};
$scope.close = function() {
$scope.$emit('updatePincodeOption');
if ($scope.fromSettings) $state.go('tabs.advanced');
else $state.go('tabs.home');
};