askForPin scope

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-29 03:14:32 -03:00
commit d5a9a916db
5 changed files with 19 additions and 19 deletions

View file

@ -64,7 +64,7 @@ angular.module('copayApp.services')
if (!$rootScope.hasPin) {
if (!_firstpin) {
_firstpin = pin;
$rootScope.askForPin = 2;
scope.askForPin = 2;
$timeout(function() {
scope.clear();
}, 100);
@ -73,12 +73,12 @@ angular.module('copayApp.services')
else {
if (pin === _firstpin) {
_firstpin = null;
$rootScope.askForPin = null;
scope.askForPin = null;
scope.createPin(pin);
}
else {
_firstpin = null;
$rootScope.askForPin = 1;
scope.askForPin = 1;
$timeout(function() {
scope.clear();
scope.error = 'Entered PINs were not equal. Try again';