Fix buttons. Remove console.logs. isMobile active!!

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-03 17:09:59 -03:00
commit 5329d030f8
5 changed files with 68 additions and 72 deletions

View file

@ -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();

View file

@ -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,

View file

@ -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);
});
};