Show HomeWallet immediately the when profile was started

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-13 18:54:30 -03:00
commit 183d6ec15c
9 changed files with 9 additions and 10 deletions

View file

@ -4,6 +4,7 @@ angular.module('copayApp.controllers').controller('CreateController',
function($scope, $rootScope, $location, $timeout, controllerUtils, backupService, notification, defaults) {
$rootScope.fromSetup = true;
$rootScope.starting = false;
$scope.loading = false;
$scope.walletPassword = $rootScope.walletPassword;
$scope.isMobile = !!window.cordova;

View file

@ -8,7 +8,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
$scope.error('Error', 'Please enter the required fields');
return;
}
$scope.loading = true;
$rootScope.starting = true;
identityService.create($scope, form);
}

View file

@ -18,7 +18,6 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$rootScope.fromEmailConfirmation = false;
}
$scope.retreiving = false;
Compatibility.check($scope);
$scope.openProfile = function(form) {
@ -27,7 +26,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$scope.error = 'Please enter the required fields';
return;
}
$scope.loading = true;
$rootScope.starting = true;
identityService.open($scope, form);
}

View file

@ -4,6 +4,7 @@ angular.module('copayApp.controllers').controller('HomeWalletController',
function($scope, $rootScope, $timeout, $modal, controllerUtils) {
controllerUtils.redirIfNotComplete();
$rootScope.starting = false;
$rootScope.title = 'Home';
}

View file

@ -54,13 +54,13 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
};
$scope.import = function(form) {
$scope.loading = true;
if (form.$invalid) {
$scope.loading = false;
$scope.error = 'Please enter the required fields';
return;
}
$rootScope.starting = true;
var backupFile = $scope.file;
var backupText = form.backupText.$modelValue;