mirror of https://github.com/BTCPrivate/copay.git
Reset variables. Added text: repeat pin
This commit is contained in:
parent
36bd87f729
commit
e2bc1eb86a
|
@ -64,6 +64,7 @@ angular.module('copayApp.services')
|
|||
if (!$rootScope.hasPin) {
|
||||
if (!_firstpin) {
|
||||
_firstpin = pin;
|
||||
$rootScope.askForPin = 2;
|
||||
$timeout(function() {
|
||||
scope.clear();
|
||||
}, 100);
|
||||
|
@ -71,10 +72,13 @@ angular.module('copayApp.services')
|
|||
}
|
||||
else {
|
||||
if (pin === _firstpin) {
|
||||
_firstpin = null;
|
||||
$rootScope.askForPin = null;
|
||||
scope.createPin(pin);
|
||||
}
|
||||
else {
|
||||
_firstpin = null;
|
||||
$rootScope.askForPin = 1;
|
||||
$timeout(function() {
|
||||
scope.clear();
|
||||
scope.error = 'Entered PINs were not equal. Try again';
|
||||
|
|
|
@ -213,6 +213,7 @@
|
|||
<img src="img/clipo-pin.png" alt="clipo" width="380">
|
||||
</div>
|
||||
|
||||
<div class="text-white text-center" ng-show="$root.askForPin == 2">Repeat PIN</div>
|
||||
<div class="box-notification" ng-show="error">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
<img src="img/clipo-pin-enter.png" alt="clipo" width="300" ng-show="$root.hasPin && !$root.iden">
|
||||
<img src="img/clipo-pin.png" alt="clipo" width="380" ng-show="$root.askForPin">
|
||||
</div>
|
||||
<div class="text-white text-center" ng-show="$root.askForPin == 2">Repeat PIN</div>
|
||||
<div class="box-notification" ng-show="error">
|
||||
<div class="box-icon error">
|
||||
<i class="fi-x size-24"></i>
|
||||
|
|
Loading…
Reference in New Issue