copay/public/views/backup.html

229 lines
8.9 KiB
HTML
Raw Normal View History

2015-11-23 11:24:12 -08:00
<div class="backup" ng-controller="backupController as wordsC">
2015-11-23 12:53:42 -08:00
<nav class="tab-bar">
2015-11-26 12:42:04 -08:00
<section class="left-small" ng-show="(wordsC.step != 1 && wordsC.step != 4)">
<a ng-click="wordsC.goToStep(1);">
2015-11-23 12:53:42 -08:00
<i class="icon-arrow-left3 icon-back"></i>
</a>
</section>
<section class="middle tab-bar-section">
</section>
<section class="right-small">
<a class="p10" ng-click="$root.go(index.prevState);">
2015-11-23 13:11:58 -08:00
<span class="text-close">
<i class="fi-x size-24"></i>
</span>
2015-11-23 12:53:42 -08:00
</a>
</section>
</nav>
2015-11-23 11:24:12 -08:00
<div class="content preferences">
2015-11-23 12:53:42 -08:00
<div class="box-notification" ng-show="wordsC.error">
<span class="text-warning">
{{wordsC.error|translate}}
2015-11-23 12:53:42 -08:00
</span>
</div>
2015-11-20 10:54:27 -08:00
<!--
## STEP 1
-->
2015-10-28 11:57:08 -07:00
2015-11-26 12:42:04 -08:00
<div ng-show="wordsC.step == 1">
2015-11-20 10:54:27 -08:00
<div ng-show="wordsC.mnemonicWords || (wordsC.credentialsEncrypted && !wordsC.deleted)">
<h5 class="text-center">Write your wallet seed</h5>
2015-11-23 11:07:53 -08:00
<div class="size-14 text-gray" ng-show="(index.n>1 && index.m != index.n )">
2015-11-20 10:54:27 -08:00
<span translate>
To restore this {{index.m}}-{{index.n}} <b>shared</b> wallet you will need
</span>:
<ol class="m10t columns size-14 text-gray">
<li translate>Your wallet seed and access to the server that coordinated the initial wallet creation. You still need {{index.m}} keys to spend.</li>
<li translate><b>OR</b> the wallet seed of <b>all</b> copayers in the wallet</li>
<li translate><b>OR</b> 1 wallet export file and the remaining quorum of wallet seeds (e.g. in a 3-5 wallet: 1 wallet export file + 2 wallet seeds of any of the other copayers).</li>
</ol>
</span>
</div>
2015-11-23 11:07:53 -08:00
<div class="size-14 text-gray" ng-show="(index.n>1 && index.m == index.n )">
2015-11-20 10:54:27 -08:00
<span translate>
To restore this {{index.m}}-{{index.n}} <b>shared</b> wallet you will need
</span>:
<ol class="m10t columns size-14 text-gray">
<li translate>Your wallet seed and access to the server that coordinated the initial wallet creation. You still need {{index.m}} keys to spend.</li>
<li translate><b>OR</b> the wallet seeds of <b>all</b> copayers in the wallet</li>
</ol>
</span>
</div>
2015-11-20 09:38:29 -08:00
</div>
2015-09-03 12:49:46 -07:00
2015-11-20 10:54:27 -08:00
<div class="row m20t" ng-show="wordsC.deleted">
<div class="columns size-14 text-gray text-center" translate>
Wallet seed not available. You can still export it from Advanced &gt; Export.
</div>
2015-09-15 05:21:31 -07:00
</div>
2015-09-03 12:49:46 -07:00
2015-11-20 10:54:27 -08:00
<div ng-show="wordsC.mnemonicWords || (wordsC.credentialsEncrypted && !wordsC.deleted)">
2015-11-26 12:42:04 -08:00
<p class="text-center columns text-gray" ng-show="index.n==1 && wordsC.step == 1">
2015-11-20 10:54:27 -08:00
<span translate>
2015-11-23 11:07:53 -08:00
You need the wallet seed to restore this personal wallet. Write it down and keep them somewhere safe.
2015-11-20 10:54:27 -08:00
</span>
</p>
<div class="row" ng-show="wordsC.credentialsEncrypted">
<div class="m10t columns">
<a class="button outline light-gray expand tiny" ng-click="wordsC.toggle()">
<i class="fi-widget m3r"></i>
<span translate ng-hide="wordsC.show">Show Wallet Seed</span>
</a>
</div>
</div>
<div class="row" ng-show="!wordsC.credentialsEncrypted">
2015-11-20 09:38:29 -08:00
<div class="columns">
2015-11-20 10:54:27 -08:00
<div class="panel" ng-class="{'enable_text_select': index.network == 'testnet'}">
<span ng-repeat="word in wordsC.mnemonicWords track by $index"><span style="white-space:nowrap">{{word}}</span><span ng-show="wordsC.useIdeograms">&#x3000;</span> </span>
2015-11-20 09:38:29 -08:00
</div>
</div>
2015-11-20 10:54:27 -08:00
</div>
2015-11-20 09:38:29 -08:00
</div>
2015-11-30 06:34:33 -08:00
<div class="columns extra-padding-bottom" ng-show="!wordsC.credentialsEncrypted">
2015-11-24 07:29:40 -08:00
<div class="line-t p10 size-10 text-gray text-center" ng-show="wordsC.mnemonicHasPassphrase">
2015-11-20 09:38:29 -08:00
<i class="fi-alert"></i>
<span translate>
2015-11-24 07:29:40 -08:00
This seed was created with a passphrase. To recover this wallet both the mnemonic and passphrase are needed.
2015-11-20 09:38:29 -08:00
</span>
</div>
</div>
2015-11-23 11:24:12 -08:00
<div class="button-box">
2015-11-20 10:54:27 -08:00
<button
2015-11-25 10:48:20 -08:00
ng-show="!wordsC.deleted"
2015-11-20 09:38:29 -08:00
ng-disabled="wordsC.credentialsEncrypted"
2015-11-23 11:24:12 -08:00
class="round expand m0"
2015-11-20 10:54:27 -08:00
ng-style="{'background-color':index.backgroundColor}"
2015-11-26 12:42:04 -08:00
ng-click="wordsC.goToStep(2);"
2015-11-20 09:38:29 -08:00
translate>Continue
</button>
</div>
</div>
2015-11-20 10:54:27 -08:00
<!--
## STEP 2
2015-11-20 09:38:29 -08:00
-->
2015-11-20 11:10:34 -08:00
2015-11-26 12:42:04 -08:00
<div ng-show="wordsC.step == 2">
2015-11-30 06:34:33 -08:00
<div class="columns text-center extra-padding-bottom">
2015-11-20 11:10:34 -08:00
<h5>Confirm your wallet seed</h5>
2015-11-23 11:07:53 -08:00
<p class="text-gray m0">
2015-11-20 11:10:34 -08:00
Please tap the words in order to confirm your backup phrase is correctly written.
</p>
<div class="panel words text-left" ng-class="{'enable_text_select': index.network == 'testnet'}">
<div id="addWord"></div>
</div>
2015-11-30 13:00:15 -08:00
<div class="text-left" ng-class="{'enable_text_select': index.network == 'testnet'}" id="buttons">
2015-11-20 11:10:34 -08:00
<span ng-repeat="word in wordsC.shuffledMnemonicWords track by $index">
2015-11-30 12:30:26 -08:00
<button class="button radius tiny words" ng-if="$index > 9" ng-click="wordsC.disableButton($index, word)" id="{{$index + word}}">{{word}}</button>
<button class="button radius tiny words" ng-if="$index <= 9" ng-click="wordsC.disableButton('0' + $index, word)" id="{{'0' + $index + word}}">{{word}}</button>
2015-11-20 11:10:34 -08:00
</span>
</div>
2015-11-20 09:38:29 -08:00
</div>
2015-11-23 11:24:12 -08:00
<div class="button-box">
2015-11-20 10:54:27 -08:00
<button
2015-11-20 09:38:29 -08:00
ng-disabled="!wordsC.selectComplete"
2015-11-23 11:24:12 -08:00
class="round expand m0"
2015-11-20 10:54:27 -08:00
ng-style="{'background-color':index.backgroundColor}"
2015-11-26 12:42:04 -08:00
ng-click="wordsC.goToStep(3);"
2015-11-20 09:38:29 -08:00
translate>Continue
</button>
</div>
2015-09-15 12:32:15 -07:00
</div>
2015-09-03 12:49:46 -07:00
2015-11-20 10:54:27 -08:00
<!--
## STEP 3
-->
2015-11-20 11:10:34 -08:00
2015-11-26 12:42:04 -08:00
<div ng-show="wordsC.step == 3">
2015-11-20 10:54:27 -08:00
<div class="columns text-center">
<h5> Enter your passphrase</h5>
2015-11-24 07:29:40 -08:00
<p class="text-gray m0">
In order to verify your wallet backup, please type your passphrase:
</p>
<div class="m20v">
2015-11-20 09:38:29 -08:00
<input type="text" id="passphrase" ng-model="passphrase" autocapitalize="off" spellcheck="false" autofocus/>
</div>
</div>
2015-11-23 11:24:12 -08:00
<div class="button-box">
2015-11-20 09:38:29 -08:00
<button
ng-disabled="!passphrase"
2015-11-20 10:54:27 -08:00
ng-style="{'background-color':index.backgroundColor}"
2015-11-23 11:24:12 -08:00
class="button round expand m0"
2015-11-26 12:42:04 -08:00
ng-click="wordsC.goToStep(4);"
2015-11-20 09:38:29 -08:00
translate>Continue
</button>
2015-11-17 10:42:06 -08:00
</div>
2015-09-15 12:32:15 -07:00
</div>
2015-09-03 12:49:46 -07:00
2015-11-20 10:54:27 -08:00
<!--
## STEP 4
-->
2015-11-20 12:30:38 -08:00
2015-11-26 12:42:04 -08:00
<div ng-show="wordsC.step == 4">
2015-11-23 07:58:04 -08:00
<div class="row m10t m10b text-center" ng-show="!wordsC.backupError">
<div class="circle-icon">
<i class="fi-like size-48"></i>
2015-11-20 09:38:29 -08:00
</div>
2015-12-09 17:51:06 -08:00
<h5>Congratulations!</h5>
2015-11-23 11:07:53 -08:00
<p class="text-gray columns" translate>
2015-12-09 17:51:06 -08:00
You backed up your wallet. You can now restore this wallet at any time.
2015-11-23 07:58:04 -08:00
</p>
2015-11-23 12:53:42 -08:00
<div class="columns text-center m20t">
<button
ng-style="{'background-color':index.backgroundColor}"
class="button round expand"
ng-click="$root.go('walletHome');"
translate>Finish
</button>
2015-11-24 06:36:06 -08:00
<!-- hide this in multisig just to show less text -->
<div class="row m20t" ng-show="index.n==1">
<div class="columns size-10 text-gray">
2015-11-24 07:29:40 -08:00
<div class="p10t line-t">
2015-11-24 06:36:06 -08:00
<span translate>You can safely install your wallet on another device and use it from multiple devices at the same time.</span>
<a href="#" ng-click="$root.openExternalLink('https://github.com/bitpay/copay/blob/master/README.md#copay-backups-and-recovery')" translate>
Learn more about Copay backups
</a>
</div>
</div>
</div>
2015-11-23 12:53:42 -08:00
</div>
2015-11-20 09:38:29 -08:00
</div>
2015-11-23 07:58:04 -08:00
<div class="row m10t m10b text-center" ng-show="wordsC.backupError">
2015-11-20 10:54:27 -08:00
<div class="circle-icon">
2015-11-23 12:53:42 -08:00
<i class="fi-dislike size-48"></i>
2015-11-30 06:34:33 -08:00
</div>Backup failed</h5>
2015-11-23 11:07:53 -08:00
<p class="text-gray columns" translate>
2015-11-23 12:53:42 -08:00
Failed to verify backup. Please check your information
2015-11-23 11:24:12 -08:00
</p>
2015-11-30 06:34:33 -08:00
<div class="columns size-10 text-gray extra-padding-bottom" ng-show="index.n==1">
<div class="p10t line-t">
<span translate>You can safely install your wallet on another device and use it from multiple devices at the same time.</span>
<a href="#" ng-click="$root.openExternalLink('https://github.com/bitpay/copay/blob/master/README.md#copay-backups-and-recovery')" translate>
Learn more about Copay backups
</a>
</div>
</div>
2015-11-20 09:38:29 -08:00
2015-11-23 11:24:12 -08:00
<div class="button-box">
2015-11-23 12:53:42 -08:00
<button
ng-style="{'background-color':index.backgroundColor}"
2015-11-30 06:34:33 -08:00
class="button round expand m0"
2015-11-26 12:42:04 -08:00
ng-click="wordsC.goToStep(1);"
2015-11-23 12:53:42 -08:00
translate>Try again
</button>
2015-09-15 12:32:15 -07:00
</div>
</div>
</div>
2015-03-06 07:00:10 -08:00
</div>
2015-04-15 10:43:59 -07:00
</div>
2015-07-17 06:56:27 -07:00
<div class="extra-margin-bottom"></div>