diff --git a/js/controllers/createProfile.js b/js/controllers/createProfile.js index bec21edd2..3ee1f0a22 100644 --- a/js/controllers/createProfile.js +++ b/js/controllers/createProfile.js @@ -86,10 +86,9 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun },1); $scope.error = msg; } else { - $scope.error = null; + $scope.error = null; // mobile - //if (isMobile.any()) { - if (true) { + if (isMobile.any()) { _credentials = { email: form.email.$modelValue, password: form.password.$modelValue, @@ -100,7 +99,6 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun $rootScope.$digest(); }, 1); - console.log('[createProfile.js.70]'); //TODO return; } else { $scope.createDefaultWallet(); diff --git a/js/controllers/home.js b/js/controllers/home.js index a18aa733a..8752fc501 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -41,16 +41,15 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc if (newValue === _firstpin) { _firstpin = null; $scope.createPin(newValue); - } else { + } else { + $scope.$$childTail.setPinForm.newpin.$setViewValue(''); + $scope.$$childTail.setPinForm.newpin.$render(); + $scope.$$childTail.setPinForm.repeatpin.$setViewValue(''); + $scope.$$childTail.setPinForm.repeatpin.$render(); + _firstpin = null; - $scope.error = 'Entered PINs were not equal. Try again'; $scope.askForPin = 1; - - $scope.setPinForm.newpin.$setViewValue(''); - $scope.setPinForm.newpin.$render(); - $scope.setPinForm.repeatpin.$setViewValue(''); - $scope.setPinForm.repeatpin.$render(); - $scope.setPinForm.$setPristine(); + $scope.error = 'Entered PINs were not equal. Try again'; } }); @@ -155,11 +154,11 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc // Open successfully? if (iden) { + $scope.error = null; $scope.confirmedEmail = false; // mobile - //if (isMobile.any() && !$rootScope.hasPin) { - if (true && !$rootScope.hasPin) { + if (isMobile.any() && !$rootScope.hasPin) { $scope.done(); _credentials = { email: email, diff --git a/js/services/identityService.js b/js/services/identityService.js index 7f84a50e4..202609dba 100644 --- a/js/services/identityService.js +++ b/js/services/identityService.js @@ -55,12 +55,10 @@ angular.module('copayApp.services') failIfExists: true, }, function(err, iden) { -console.log('[identityService.js.57]'); //TODO if (err) return cb(err); preconditions.checkState(iden); root.bind(iden); -console.log('[identityService.js.62]'); //TODO return cb(null); }); }; diff --git a/views/createProfile.html b/views/createProfile.html index 5a55bafe0..dd87c2cef 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -96,44 +96,43 @@

Set up a PIN ?

-

Enter a 4-digit number for easier access from this device +

Enter a 4-digit number for easier access from this device

-
-
- -
- +
+
+ +
+ {{error|translate}} +
+ +
+
+ + +
+
+ +
- -
- - -
-
- - -
- - -
diff --git a/views/home.html b/views/home.html index c8a5f1830..6a9bb97c3 100644 --- a/views/home.html +++ b/views/home.html @@ -49,7 +49,7 @@

Set up a PIN ?

-

Enter a 4-digit number for easier access from this device +

Enter a 4-digit number for easier access from this device

@@ -60,7 +60,7 @@
-
+
- -
-
@@ -115,18 +113,22 @@ placeholder="Pin number" name="pin" required auto-focus>
- - - - + + +