fix backup file
This commit is contained in:
parent
6e4a1e7ff2
commit
572220689a
3 changed files with 6 additions and 15 deletions
|
|
@ -2,20 +2,9 @@
|
|||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-title>Backup Flow</ion-nav-title>
|
||||
<ion-nav-buttons side="primary">
|
||||
<<<<<<< 5b14c8aca37bc7b15324fdbbed162dea8cc2d3af
|
||||
<button class="button no-border" ng-click="goToStep(1)" ng-show="(step != 1 && step != 4)">
|
||||
<i class="icon ion-chevron-left"></i>
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-buttons side="secondary">
|
||||
<span class="button no-border" ng-click="goBack()">
|
||||
<i class="icon ion-close"></i>
|
||||
</span>
|
||||
=======
|
||||
<button class="button" href ui-sref="wallet.preferences">
|
||||
<i class="ion-arrow-left-c"></i> Back
|
||||
</button>
|
||||
>>>>>>> delete focused wallet
|
||||
</ion-nav-buttons>
|
||||
</ion-nav-bar>
|
||||
<ion-content ng-controller="backupController" cache-view="false" ng-init="init()">
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
|
|||
$scope.$emit('Local/ClearHistory');
|
||||
|
||||
$timeout(function() {
|
||||
go.choosedWallet(c.walletId);
|
||||
go.WalletHome();
|
||||
}, 100);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue