mirror of https://github.com/BTCPrivate/copay.git
fix back routes on backup view when resume
This commit is contained in:
parent
1e0424ad29
commit
c3e471a525
|
@ -1,11 +1,13 @@
|
|||
<ion-view id="wallet-backup-phrase" title="{{viewTitle}}" ng-controller="backupController" ng-init="init()">
|
||||
<ion-nav-bar class="bar-royal">
|
||||
<ion-nav-back-button>
|
||||
<i class="icon ion-ios-arrow-thin-left"></i>
|
||||
</ion-nav-back-button>
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button button-back no-border" ng-click="backupGoBack()">
|
||||
<i class="icon ion-ios-arrow-thin-left"></i>
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
</ion-nav-bar>
|
||||
<ion-content>
|
||||
<div ng-show="deleted">
|
||||
<div class="ng-hide" ng-show="deleted">
|
||||
<div class="row text-center">
|
||||
<h3 translate class="col col-75 center-block">Wallet recovery phrase not available.</h3>
|
||||
</div>
|
||||
|
@ -18,7 +20,7 @@
|
|||
<!--
|
||||
## STEP 1
|
||||
-->
|
||||
<div ng-show="step == 1 && (mnemonicWords || (!credentialsEncrypted && !deleted))">
|
||||
<div class="ng-hide" ng-show="step == 1 && (mnemonicWords || (!credentialsEncrypted && !deleted))">
|
||||
<div class="backup-phrase" ng-class="{'enable_text_select': wallet.network == 'testnet'}">
|
||||
<span ng-repeat="word in mnemonicWords track by $index"><span style="white-space:nowrap">{{word}}</span><span ng-show="useIdeograms"> </span> </span>
|
||||
</div>
|
||||
|
@ -42,7 +44,7 @@
|
|||
<!--
|
||||
## STEP 2
|
||||
-->
|
||||
<div ng-show="step == 2">
|
||||
<div class="ng-hide" ng-show="step == 2">
|
||||
<div class="backup-phrase">
|
||||
<span ng-repeat="cword in customWords track by $index" ng-show="customWords[$index]">
|
||||
<button class="button select-word" ng-click="removeButton($index, cword)">{{cword.word}}</button>
|
||||
|
@ -63,7 +65,7 @@
|
|||
<!--
|
||||
## STEP 3
|
||||
-->
|
||||
<div ng-show="step == 3">
|
||||
<div class="ng-hide" ng-show="step == 3">
|
||||
<h5 translate>Enter your password</h5>
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label" transalate>In order to verify your wallet backup, please type your password:</span>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ion-view id="onboarding-backup-warning" class="onboarding" ng-controller="backupWarningController">
|
||||
<ion-nav-bar>
|
||||
<ion-nav-bar class="bar-royal">
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button button-back no-border" href ui-sref="onboarding.backupRequest({walletId: walletId})">
|
||||
<i class="icon ion-ios-arrow-thin-left"></i>
|
||||
|
|
|
@ -212,4 +212,14 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
$scope.selectComplete = false;
|
||||
};
|
||||
|
||||
$scope.backupGoBack = function() {
|
||||
if ($stateParams.fromOnboarding) $state.go('onboarding.backupWarning', {
|
||||
walletId: $stateParams.walletId,
|
||||
fromOnboarding: true
|
||||
});
|
||||
else $state.go('tabs.preferences.main', {
|
||||
walletId: $stateParams.walletId
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue