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

@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
$scope.hideForWP = 0;
$scope.digits = [];
$scope.defined = [];
$rootScope.askForPin = 0;
$scope.askForPin = 0;
$scope.createStep = 'storage';
$scope.useLocalstorage = false;
@ -53,7 +53,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
pinService.save(pin, _credentials.email, _credentials.password, function(err) {
_credentials.password = '';
_credentials = null;
$rootScope.askForPin = 0;
$scope.askForPin = 0;
$rootScope.hasPin = true;
$scope.createDefaultWallet();
});
@ -100,7 +100,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
$rootScope.hideNavigation = false;
$rootScope.starting = true;
identityService.createDefaultWallet(function(err) {
$rootScope.askForPin = 0;
$scope.askForPin = 0;
$rootScope.starting = null;
if (err) {
@ -140,7 +140,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
email: emailOrUsername,
password: password,
};
$rootScope.askForPin = 1;
$scope.askForPin = 1;
$scope.hideForWP = 0;
$rootScope.hideNavigation = true;

View file

@ -13,7 +13,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$scope.attempt = 0;
$scope.digits = [];
$scope.defined = [];
$rootScope.askForPin = 0;
$scope.askForPin = 0;
// This is only for backwards compat, insight api should link to #!/confirmed directly
if (getParam('confirmed')) {
@ -113,7 +113,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
pinService.save(pin, _credentials.email, _credentials.password, function(err) {
_credentials.password = '';
_credentials = null;
$rootScope.askForPin = 0;
$scope.askForPin = 0;
$rootScope.hasPin = true;
$rootScope.starting = null;
$scope.openWallets();
@ -183,7 +183,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
email: email,
password: password,
};
$rootScope.askForPin = 1;
$scope.askForPin = 1;
$rootScope.starting = false;
$rootScope.hideNavigation = true;
$timeout(function() {