From 572220689a718795e7ceeca7b7e743e7099d1722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Fri, 19 Aug 2016 13:14:23 -0300 Subject: [PATCH] fix backup file --- public/views/backup.html | 11 ----------- src/js/controllers/preferencesHistory.js | 2 +- src/js/services/go.js | 8 +++++--- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/public/views/backup.html b/public/views/backup.html index 396023599..e86675fff 100644 --- a/public/views/backup.html +++ b/public/views/backup.html @@ -2,20 +2,9 @@ Backup Flow -<<<<<<< 5b14c8aca37bc7b15324fdbbed162dea8cc2d3af - - - -   - - -=======   ->>>>>>> delete focused wallet   diff --git a/src/js/controllers/preferencesHistory.js b/src/js/controllers/preferencesHistory.js index ddbb71e61..219b5779d 100644 --- a/src/js/controllers/preferencesHistory.js +++ b/src/js/controllers/preferencesHistory.js @@ -126,7 +126,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory', $scope.$emit('Local/ClearHistory'); $timeout(function() { - go.choosedWallet(c.walletId); + go.WalletHome(); }, 100); }); }; diff --git a/src/js/services/go.js b/src/js/services/go.js index 529ee1330..082d3c207 100644 --- a/src/js/services/go.js +++ b/src/js/services/go.js @@ -30,10 +30,12 @@ angular.module('copayApp.services').factory('go', function($window, $ionicSideMe }; root.walletHome = function() { - var fc = profileService.focusedClient; - if (fc && !fc.isComplete()) { + var wallet = profileService.getWallet($stateParams.walletId); + if (wallet && !wallet.isComplete()) { $log.debug("Wallet not complete at startup... redirecting"); - $state.transitionTo('wallet.details', {walletId: fc.credentials.walletId}) + $state.transitionTo('wallet.details', { + walletId: wallet.credentials.walletId + }) } else { root.path('tabs.home'); }