askForPin scope
This commit is contained in:
parent
e2bc1eb86a
commit
d5a9a916db
5 changed files with 19 additions and 19 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue