Merge pull request #5669 from cmgustavo/bug/empty-app-after-refresh
Bug/empty app after refresh
This commit is contained in:
commit
52a690e31e
2 changed files with 15 additions and 1 deletions
|
|
@ -340,6 +340,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
$scope.walletId = data.stateParams.walletId;
|
||||
$scope.wallet = profileService.getWallet($scope.walletId);
|
||||
if (!$scope.wallet) return;
|
||||
$scope.requiresMultipleSignatures = $scope.wallet.credentials.m > 1;
|
||||
|
||||
addressbookService.list(function(err, ab) {
|
||||
|
|
|
|||
|
|
@ -1177,7 +1177,20 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
profileService.storeProfileIfDirty();
|
||||
$log.debug('Profile loaded ... Starting UX.');
|
||||
scannerService.gentleInitialize();
|
||||
$state.go('tabs.home');
|
||||
// Reload tab-home if necessary (from root path: starting)
|
||||
$state.go('starting', {}, {
|
||||
'reload': true,
|
||||
'notify': $state.current.name == 'starting' ? false : true
|
||||
}).then(function() {
|
||||
$ionicHistory.nextViewOptions({
|
||||
disableAnimate: true,
|
||||
historyRoot: true
|
||||
});
|
||||
$state.transitionTo('tabs.home').then(function() {
|
||||
// Clear history
|
||||
$ionicHistory.clearHistory();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// After everything have been loaded, initialize handler URL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue