Show HomeWallet immediately the when profile was started
This commit is contained in:
parent
9b4d261637
commit
183d6ec15c
9 changed files with 9 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ angular.module('copayApp.controllers').controller('HomeWalletController',
|
|||
function($scope, $rootScope, $timeout, $modal, controllerUtils) {
|
||||
|
||||
controllerUtils.redirIfNotComplete();
|
||||
$rootScope.starting = false;
|
||||
$rootScope.title = 'Home';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue