2016-10-26 11:54:29 -07:00
|
|
|
<ion-view id="join" class="settings">
|
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
|
|
|
|
|
|
|
<ion-content ng-controller="joinController as join">
|
2016-08-16 13:45:20 -07:00
|
|
|
|
|
|
|
<form name="joinForm" ng-submit="join.join(joinForm)" 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"
|
|
|
|
placeholder="{{'John'|translate}}"
|
|
|
|
name="myName"
|
|
|
|
ng-model="myName"
|
|
|
|
ng-required="true">
|
|
|
|
</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">
|
2016-12-23 05:32:09 -08:00
|
|
|
<i ng-show="!joinForm.secret.$invalid" class="icon ion-checkmark-circled valid"></i>
|
|
|
|
<i ng-show="joinForm.secret.$invalid && 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"
|
|
|
|
ng-model="secret"
|
|
|
|
wallet-secret required>
|
2016-10-26 11:54:29 -07:00
|
|
|
</label>
|
|
|
|
<div class="qr-scan-icon">
|
2016-12-29 09:37:31 -08:00
|
|
|
<qr-scanner class="qr-icon size-24" on-scan="join.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>
|
|
|
|
<input type="text" id="bwsurl" name="bwsurl" ng-model="bwsurl">
|
|
|
|
</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"
|
|
|
|
ng-model="seedSource"
|
|
|
|
ng-options="seed as seed.label for seed in join.seedOptions"
|
|
|
|
ng-change="join.setSeedSource()">
|
|
|
|
</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"
|
|
|
|
ng-show="join.seedSourceId == 'trezor' || join.seedSourceId == 'ledger'">
|
|
|
|
<span class="input-label" translate>Account Number</span>
|
|
|
|
<input type="number" id="account" ng-model="account" ignore-mouse-wheel>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId=='set'">
|
|
|
|
<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"
|
|
|
|
ng-model="privateKey">
|
|
|
|
</label>
|
|
|
|
|
2016-12-19 12:55:21 -08:00
|
|
|
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()" ng-show="join.seedSourceId == 'new' || join.seedSourceId == 'set'">
|
|
|
|
<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">
|
|
|
|
<span ng-show="join.seedSourceId == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
|
|
|
<span ng-show="join.seedSourceId == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
|
|
|
</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">
|
2016-12-23 05:32:09 -08:00
|
|
|
<input ng-show="join.seedSourceId == 'new'"
|
2016-12-19 12:55:21 -08:00
|
|
|
placeholder="{{'Password'|translate}}"
|
|
|
|
type="password"
|
|
|
|
autocapitalize="off"
|
|
|
|
name="createPassphrase"
|
|
|
|
ng-model="createPassphrase">
|
2016-10-07 12:23:08 -07:00
|
|
|
|
2016-12-23 05:32:09 -08:00
|
|
|
<input ng-show="join.seedSourceId == '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"
|
|
|
|
ng-model="passphrase">
|
2016-12-19 12:55:21 -08:00
|
|
|
</div>
|
2016-08-16 13:45:20 -07:00
|
|
|
|
2016-10-07 12:23:08 -07:00
|
|
|
<div class="text-center box-notification error" ng-show="(join.seedSourceId =='new' || join.seedSourceId =='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>
|
|
|
|
|
|
|
|
<ion-checkbox ng-model="passwordSaved" class="checkbox-positive" ng-show="encrypt">
|
|
|
|
<span class="toggle-label" translate>I have written it down</span>
|
|
|
|
</ion-checkbox>
|
|
|
|
|
2016-08-16 13:45:20 -07:00
|
|
|
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId == 'set'">
|
|
|
|
<span class="input-label" translate>Derivation Path</span>
|
|
|
|
<input type="text"
|
|
|
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
|
|
|
name="derivationPath"
|
|
|
|
ng-model="derivationPath">
|
|
|
|
</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"
|
2016-10-07 12:23:08 -07:00
|
|
|
ng-disabled="joinForm.$invalid || ((encrypt && !passwordSaved) || encrypt && ((join.seedSourceId == 'new' && !createPassphrase) || (join.seedSourceId == 'set' && !passphrase)))"
|
|
|
|
translate>Join
|
2016-08-16 13:45:20 -07:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</ion-content>
|
|
|
|
</ion-view>
|