2015-05-17 00:34:26 -03:00
|
|
|
|
<div
|
|
|
|
|
|
class="topbar-container"
|
2015-05-08 09:35:33 -03:00
|
|
|
|
ng-include="'views/includes/topbar.html'"
|
|
|
|
|
|
ng-init="titleSection='Import wallet'; goBackToState = 'add'; noColor = true">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2015-08-10 15:04:28 -03:00
|
|
|
|
<div class="content p20v" ng-controller="importController as import" ng-init="type='12'">
|
2015-09-04 21:18:20 -03:00
|
|
|
|
<div class="onGoingProcess" ng-show="import.loading && !import.ledger">
|
2015-04-24 17:23:33 -03:00
|
|
|
|
<div class="onGoingProcess-content" ng-style="{'background-color':'#222'}">
|
2015-04-24 03:14:18 -03:00
|
|
|
|
<div class="spinner">
|
|
|
|
|
|
<div class="rect1"></div>
|
|
|
|
|
|
<div class="rect2"></div>
|
|
|
|
|
|
<div class="rect3"></div>
|
|
|
|
|
|
<div class="rect4"></div>
|
|
|
|
|
|
<div class="rect5"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span translate>Importing wallet...</span>
|
2015-04-24 17:23:33 -03:00
|
|
|
|
</div>
|
2015-04-24 03:14:18 -03:00
|
|
|
|
</div>
|
2015-09-04 21:18:20 -03:00
|
|
|
|
<div class="onGoingProcess" ng-show="import.ledger">
|
|
|
|
|
|
<div class="onGoingProcess-content" ng-style="{'background-color':'#222'}">
|
|
|
|
|
|
<div class="spinner">
|
|
|
|
|
|
<div class="rect1"></div>
|
|
|
|
|
|
<div class="rect2"></div>
|
|
|
|
|
|
<div class="rect3"></div>
|
|
|
|
|
|
<div class="rect4"></div>
|
|
|
|
|
|
<div class="rect5"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span translate>Connecting to Ledger Wallet...</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-24 03:14:18 -03:00
|
|
|
|
|
2015-08-10 15:04:28 -03:00
|
|
|
|
<div class="create-tab small-only-text-center" ng-hide="create.hideTabs">
|
2015-09-04 21:18:20 -03:00
|
|
|
|
<div class="row" ng-show="!index.isChromeApp">
|
2015-09-02 15:56:00 -03:00
|
|
|
|
<div class="tab-container small-6 medium-6 large-6">
|
2015-08-10 15:04:28 -03:00
|
|
|
|
<a href
|
|
|
|
|
|
ng-class="{'selected': type =='12'}"
|
2015-09-03 01:49:48 -03:00
|
|
|
|
ng-click="import.setType('12')" translate>Walled Seed</a>
|
2015-08-10 15:04:28 -03:00
|
|
|
|
</div>
|
2015-09-02 15:56:00 -03:00
|
|
|
|
<div class="tab-container small-6 medium-6 large-6">
|
2015-08-10 15:04:28 -03:00
|
|
|
|
<a href
|
|
|
|
|
|
ng-class="{'selected': type=='file'}"
|
2015-08-24 17:09:59 -03:00
|
|
|
|
ng-click="import.setType('file')" translate>File/Text Backup</a>
|
2015-08-10 15:04:28 -03:00
|
|
|
|
</div>
|
2015-09-04 21:18:20 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row" ng-show="index.isChromeApp">
|
|
|
|
|
|
<div class="tab-container small-4 medium-4 large-4">
|
|
|
|
|
|
<a href
|
|
|
|
|
|
ng-class="{'selected': type =='12'}"
|
|
|
|
|
|
ng-click="import.setType('12')" translate>Walled Seed</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tab-container small-4 medium-4 large-4">
|
|
|
|
|
|
<a href
|
|
|
|
|
|
ng-class="{'selected': type=='file'}"
|
|
|
|
|
|
ng-click="import.setType('file')" translate>File/Text Backup</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tab-container small-4 medium-4 large-4">
|
|
|
|
|
|
<a href
|
|
|
|
|
|
ng-class="{'selected': type=='ledger'}"
|
|
|
|
|
|
ng-click="import.setType('ledger')" translate>Ledger</a>
|
|
|
|
|
|
</div>
|
2015-08-10 15:04:28 -03:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2015-09-04 21:18:20 -03:00
|
|
|
|
|
2015-08-10 15:04:28 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-08-24 17:09:59 -03:00
|
|
|
|
<div class="row" ng-show="type == '12' ">
|
|
|
|
|
|
<div class="large-12 columns">
|
|
|
|
|
|
<form name="importForm12" ng-submit="import.importMnemonic(importForm12)" novalidate>
|
|
|
|
|
|
<div class="box-notification" ng-show="import.error">
|
|
|
|
|
|
<span class="text-warning size-14">
|
|
|
|
|
|
{{import.error|translate}}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
2015-04-24 03:14:18 -03:00
|
|
|
|
|
2015-08-24 17:09:59 -03:00
|
|
|
|
<div >
|
|
|
|
|
|
<label for="words">
|
2015-09-03 01:49:48 -03:00
|
|
|
|
<span translate>Type the Wallet Seed (12 words)</span>:
|
2015-08-24 17:09:59 -03:00
|
|
|
|
</label>
|
2015-09-02 15:56:00 -03:00
|
|
|
|
<textarea class="form-control" name="words" ng-model="import.words" rows="2"></textarea>
|
2015-08-24 17:09:59 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="m10t oh" ng-init="hideAdv=true">
|
|
|
|
|
|
<a class="button outline light-gray expand tiny" ng-click="hideAdv=!hideAdv">
|
|
|
|
|
|
<i class="fi-widget m3r"></i>
|
|
|
|
|
|
<span translate ng-hide="!hideAdv">Show advanced options</span>
|
|
|
|
|
|
<span translate ng-hide="hideAdv">Hide advanced options</span>
|
|
|
|
|
|
<i ng-if="hideAdv" class="icon-arrow-down4"></i>
|
|
|
|
|
|
<i ng-if="!hideAdv" class="icon-arrow-up4"></i>
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div ng-hide="hideAdv" class="row">
|
|
|
|
|
|
<div class="large-12 columns">
|
2015-09-03 01:49:48 -03:00
|
|
|
|
<label for="network-name" class=" oh">
|
|
|
|
|
|
<span translate>Testnet</span>
|
|
|
|
|
|
<switch id="network-name" name="isTestnet" ng-model="isTestnet" class="green right m5t m10b"></switch>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
<label for="passphrase" class="oh line-b"><span translate>Passphrase</span> <small translate>Wallet Seed could require a passphrase to be imported</small>
|
2015-08-24 17:09:59 -03:00
|
|
|
|
<div class="input">
|
2015-09-03 01:49:48 -03:00
|
|
|
|
<input type="password" class="form-control" placeholder="{{'Seed passphrase'|translate}}"
|
2015-08-24 17:09:59 -03:00
|
|
|
|
name="passphrase" ng-model="import.passphrase">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2015-09-03 01:49:48 -03:00
|
|
|
|
<button translate type="submit" class="button round expand black m10t"
|
2015-08-24 17:09:59 -03:00
|
|
|
|
ng-disabled="importForm12.$invalid || import.loading">
|
|
|
|
|
|
Import
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row" ng-show="type == 'file' ">
|
2015-03-06 12:00:10 -03:00
|
|
|
|
<div class="large-12 columns">
|
2015-08-24 17:09:59 -03:00
|
|
|
|
<form name="importForm" ng-submit="import.importBlob(importForm)" novalidate>
|
2015-03-06 12:00:10 -03:00
|
|
|
|
<div class="box-notification" ng-show="import.error">
|
|
|
|
|
|
<span class="text-warning size-14">
|
|
|
|
|
|
{{import.error|translate}}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="!import.isSafari && !import.isCordova" class="line-b m10b">
|
|
|
|
|
|
<label for="backupFile">
|
2015-05-14 12:49:43 -04:00
|
|
|
|
<span translate>Choose a backup file from your computer</span> <i class="fi-laptop"></i>
|
2015-03-06 12:00:10 -03:00
|
|
|
|
</label>
|
|
|
|
|
|
<input type="file" class="form-control" placeholder="{{'Select a backup file'|translate}}"
|
|
|
|
|
|
name="backupFile" ng-model="import.backupFile" ng-file-select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="import.isSafari || import.isCordova">
|
|
|
|
|
|
<label for="backupText">
|
2015-05-14 12:49:43 -04:00
|
|
|
|
<span translate>Paste the backup plain text code</span> <i class="fi-clipboard"></i>
|
2015-03-06 12:00:10 -03:00
|
|
|
|
</label>
|
|
|
|
|
|
<textarea class="form-control" name="backupText" ng-model="import.backupText" rows="5"></textarea>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2015-09-03 01:49:48 -03:00
|
|
|
|
<label for="password"><span translate>Password</span>
|
2015-03-06 12:00:10 -03:00
|
|
|
|
</label>
|
|
|
|
|
|
<div class="input">
|
|
|
|
|
|
<input type="password" class="form-control" placeholder="{{'Your backup password'|translate}}"
|
|
|
|
|
|
name="password" ng-model="import.password">
|
|
|
|
|
|
</div>
|
2015-05-17 00:34:26 -03:00
|
|
|
|
<button translate type="submit" class="button round expand black"
|
2015-05-21 17:25:14 -03:00
|
|
|
|
ng-disabled="importForm.$invalid || !import.password || import.loading">
|
2015-03-06 12:00:10 -03:00
|
|
|
|
Import backup
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</form>
|
2015-05-13 11:58:19 -03:00
|
|
|
|
|
2015-05-21 17:25:14 -03:00
|
|
|
|
<div class="text-center text-gray p20v" ng-click="$root.go('importLegacy')">
|
|
|
|
|
|
<p class="text-gray m5b size-14" translate> Have a Backup from Copay v0.9?</p>
|
|
|
|
|
|
<button class=" outline dark-gray tiny round"> <span translate>Import here</span>
|
|
|
|
|
|
<i class="icon-arrow-right3 size-14"></i>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2015-05-13 11:58:19 -03:00
|
|
|
|
|
2015-03-06 12:00:10 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2015-08-24 17:09:59 -03:00
|
|
|
|
|
2015-09-04 21:18:20 -03:00
|
|
|
|
<div class="row" ng-show="type == 'ledger'">
|
2015-08-24 17:09:59 -03:00
|
|
|
|
<div class="large-12 columns">
|
2015-09-04 21:18:20 -03:00
|
|
|
|
<form name="importForm3" ng-submit="import.importLedger(importForm3)" novalidate>
|
|
|
|
|
|
<div class="box-notification" ng-show="import.error">
|
|
|
|
|
|
<span class="text-warning size-14">
|
|
|
|
|
|
{{import.error|translate}}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="large-12 columns">
|
|
|
|
|
|
<label class="line-b oh">
|
|
|
|
|
|
<span translate>Select slot number for Ledger key</span>
|
|
|
|
|
|
<select class="m10t" ng-model="externalIndex" ng-options="externalIndex as externalIndex for externalIndex in import.externalIndexValues">
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<button translate type="submit" class="button round expand black"
|
|
|
|
|
|
ng-disabled="import.loading || import.ledger">
|
|
|
|
|
|
Import backup
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
2015-08-24 17:09:59 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-06 12:00:10 -03:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="extra-margin-bottom"></div>
|