2017-06-28 12:28:17 -07:00
|
|
|
<ion-view id="join" class="settings" show-tabs>
|
2016-08-31 12:54:53 -07:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-09-16 17:01:19 -07:00
|
|
|
<ion-nav-back-button>
|
|
|
|
</ion-nav-back-button>
|
2016-09-01 06:12:06 -07:00
|
|
|
<ion-nav-title>{{'Join shared wallet' | translate}}</ion-nav-title>
|
2016-08-17 20:27:23 -07:00
|
|
|
</ion-nav-bar>
|
2016-08-16 13:45:20 -07:00
|
|
|
|
2016-08-17 20:27:23 -07:00
|
|
|
|
2017-05-22 17:28:41 -07:00
|
|
|
<ion-content>
|
2016-08-16 13:45:20 -07:00
|
|
|
|
2017-05-22 17:05:32 -07:00
|
|
|
<form name="setupForm" ng-submit="join()" novalidate>
|
2015-03-06 07:00:10 -08:00
|
|
|
|
2016-10-12 22:31:15 -07:00
|
|
|
<div class="list settings-list settings-input-group">
|
2016-08-16 13:45:20 -07:00
|
|
|
|
2016-09-17 14:04:54 -07:00
|
|
|
<label class="item item-input item-stacked-label no-border">
|
|
|
|
<span class="input-label" translate>Your nickname</span>
|
|
|
|
<input type="text"
|
2017-05-22 17:28:41 -07:00
|
|
|
placeholder="Satoshi"
|
2016-09-17 14:04:54 -07:00
|
|
|
name="myName"
|
2017-05-22 17:05:32 -07:00
|
|
|
ng-model="formData.myName"
|
|
|
|
required>
|
2016-09-17 14:04:54 -07:00
|
|
|
</label>
|
|
|
|
|
2016-10-26 11:54:29 -07:00
|
|
|
<div>
|
|
|
|
<label class="item item-input item-stacked-label no-border">
|
|
|
|
<span class="input-label" translate>Wallet Invitation</span>
|
|
|
|
<div class="input-notification">
|
2017-05-22 17:05:32 -07:00
|
|
|
<i ng-show="!setupForm.secret.$invalid" class="icon ion-checkmark-circled valid"></i>
|
|
|
|
<i ng-show="setupForm.secret.$invalid && formData.secret" class="icon ion-close-circled invalid"></i>
|
2016-10-26 11:54:29 -07:00
|
|
|
</div>
|
2016-09-17 14:04:54 -07:00
|
|
|
<input id="secret"
|
|
|
|
type="text"
|
|
|
|
placeholder="{{'Paste invitation here'|translate}}"
|
|
|
|
name="secret"
|
2017-05-22 17:05:32 -07:00
|
|
|
ng-model="formData.secret"
|
2016-09-17 14:04:54 -07:00
|
|
|
wallet-secret required>
|
2016-10-26 11:54:29 -07:00
|
|
|
</label>
|
|
|
|
<div class="qr-scan-icon">
|
2017-05-22 13:30:24 -07:00
|
|
|
<qr-scanner class="qr-icon size-24" on-scan="onQrCodeScannedJoin(data)"></qr-scanner>
|
2016-08-18 09:15:25 -07:00
|
|
|
</div>
|
2016-10-26 11:54:29 -07:00
|
|
|
</div>
|
2016-10-07 12:23:08 -07:00
|
|
|
<div class="item item-divider"></div>
|
|
|
|
|
|
|
|
<a class="item" ng-click="showAdvChange()">
|
2016-08-16 13:45:20 -07:00
|
|
|
<span translate ng-show="!showAdv">Show advanced options</span>
|
|
|
|
<span translate ng-show="showAdv">Hide advanced options</span>
|
2016-10-07 12:23:08 -07:00
|
|
|
</a>
|
2016-08-16 13:45:20 -07:00
|
|
|
|
|
|
|
<div ng-show="showAdv">
|
2015-11-04 10:45:33 -08:00
|
|
|
|
2016-08-16 13:45:20 -07:00
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
<span class="input-label">Wallet Service URL</span>
|
2017-05-22 17:05:32 -07:00
|
|
|
<input type="text" id="bwsurl" name="bwsurl" ng-model="formData.bwsurl">
|
2016-08-16 13:45:20 -07:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<label class="item item-input item-select">
|
|
|
|
<div class="input-label" translate>
|
|
|
|
Wallet Key
|
2015-10-22 08:50:43 -07:00
|
|
|
</div>
|
2016-08-16 13:45:20 -07:00
|
|
|
<select class="m10t"
|
2017-05-29 11:04:22 -07:00
|
|
|
ng-model="formData.seedSource"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-options="seed as seed.label for seed in seedOptions"
|
2017-05-22 17:34:48 -07:00
|
|
|
ng-change="resizeView()">
|
2016-08-16 13:45:20 -07:00
|
|
|
</select>
|
|
|
|
</label>
|
2015-09-02 21:49:48 -07:00
|
|
|
|
2016-08-16 13:45:20 -07:00
|
|
|
<label class="item item-input item-stacked-label"
|
2017-05-29 11:04:22 -07:00
|
|
|
ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
|
2016-08-16 13:45:20 -07:00
|
|
|
<span class="input-label" translate>Account Number</span>
|
2017-05-22 17:05:32 -07:00
|
|
|
<input type="number" id="account" ng-model="formData.account" ignore-mouse-wheel>
|
2016-08-16 13:45:20 -07:00
|
|
|
</label>
|
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
2016-08-16 13:45:20 -07:00
|
|
|
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
|
|
|
<input id="ext-master"
|
|
|
|
placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
|
|
|
autocapitalize="off"
|
|
|
|
type="text"
|
|
|
|
name="privateKey"
|
2017-05-22 17:05:32 -07:00
|
|
|
ng-model="formData.privateKey">
|
2016-08-16 13:45:20 -07:00
|
|
|
</label>
|
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()" ng-show="formData.seedSource.id == 'new' || formData.seedSource.id == 'set'">
|
2016-12-19 12:55:21 -08:00
|
|
|
<span class="toggle-label" translate>Add a password</span>
|
2016-10-07 12:23:08 -07:00
|
|
|
</ion-toggle>
|
2016-12-19 12:55:21 -08:00
|
|
|
<div class="comment">
|
2017-05-29 11:04:22 -07:00
|
|
|
<span ng-show="formData.seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
|
|
|
<span ng-show="formData.seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
2016-12-19 12:55:21 -08:00
|
|
|
</div>
|
2016-10-07 12:23:08 -07:00
|
|
|
|
2016-12-19 12:55:21 -08:00
|
|
|
<div class="item item-input" ng-show="encrypt">
|
2017-05-29 11:04:22 -07:00
|
|
|
<input ng-show="formData.seedSource.id == 'new'"
|
2016-12-19 12:55:21 -08:00
|
|
|
placeholder="{{'Password'|translate}}"
|
|
|
|
type="password"
|
|
|
|
autocapitalize="off"
|
|
|
|
name="createPassphrase"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-model="formData.createPassphrase"
|
2017-05-22 17:28:41 -07:00
|
|
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
2016-10-07 12:23:08 -07:00
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<input ng-show="formData.seedSource.id == 'set'"
|
2016-12-19 12:55:21 -08:00
|
|
|
placeholder="{{'Password'|translate}}"
|
|
|
|
type="password"
|
2016-08-16 13:45:20 -07:00
|
|
|
autocapitalize="off"
|
|
|
|
name="passphrase"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-model="formData.passphrase"
|
2017-05-22 17:28:41 -07:00
|
|
|
ng-change="checkPassword(formData.passphrase, formData.repeatPassword)"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
2016-12-19 12:55:21 -08:00
|
|
|
</div>
|
2016-08-16 13:45:20 -07:00
|
|
|
|
2017-05-22 13:30:24 -07:00
|
|
|
<div class="item item-input" ng-show="encrypt">
|
2017-05-29 11:04:22 -07:00
|
|
|
<input ng-show="formData.seedSource.id == 'new'"
|
2017-05-22 13:30:24 -07:00
|
|
|
placeholder="{{'Repeat password'|translate}}"
|
|
|
|
type="password"
|
|
|
|
autocapitalize="off"
|
2017-05-22 17:28:41 -07:00
|
|
|
ng-model="formData.repeatPassword"
|
|
|
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<input ng-show="formData.seedSource.id == 'set'"
|
2017-05-22 13:30:24 -07:00
|
|
|
placeholder="{{'Repeat password'|translate}}"
|
|
|
|
type="password"
|
|
|
|
autocapitalize="off"
|
2017-05-22 17:28:41 -07:00
|
|
|
ng-model="formData.repeatPassword"
|
|
|
|
ng-change="checkPassword(formData.passphrase, formData.repeatPassword)"
|
2017-05-22 13:30:24 -07:00
|
|
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
|
|
|
</div>
|
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<div class="text-center box-notification error" ng-show="(formData.seedSource.id =='new' || formData.seedSource.id =='set') && encrypt">
|
2016-12-09 06:26:24 -08:00
|
|
|
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
2016-10-07 12:23:08 -07:00
|
|
|
</div>
|
|
|
|
|
2017-05-22 17:05:32 -07:00
|
|
|
<ion-checkbox ng-model="formData.passwordSaved" class="checkbox-positive" ng-show="encrypt && result == 'correct'">
|
2016-10-07 12:23:08 -07:00
|
|
|
<span class="toggle-label" translate>I have written it down</span>
|
|
|
|
</ion-checkbox>
|
|
|
|
|
2017-05-29 11:04:22 -07:00
|
|
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
2016-08-16 13:45:20 -07:00
|
|
|
<span class="input-label" translate>Derivation Path</span>
|
|
|
|
<input type="text"
|
|
|
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
|
|
|
name="derivationPath"
|
2017-05-22 17:05:32 -07:00
|
|
|
ng-model="formData.derivationPath">
|
2016-08-16 13:45:20 -07:00
|
|
|
</label>
|
2015-11-04 10:45:33 -08:00
|
|
|
|
|
|
|
</div> <!-- advanced -->
|
2016-08-16 13:45:20 -07:00
|
|
|
</div> <!-- list -->
|
|
|
|
|
2016-10-11 20:23:54 -07:00
|
|
|
<button type="submit" class="button button-standard button-primary"
|
2017-05-29 11:04:22 -07:00
|
|
|
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((formData.seedSource.id == 'new' && !formData.createPassphrase) || (formData.seedSource.id == 'set' && !formData.passphrase)))"
|
2016-10-07 12:23:08 -07:00
|
|
|
translate>Join
|
2016-08-16 13:45:20 -07:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</ion-content>
|
|
|
|
</ion-view>
|