2017-06-28 16:28:17 -03:00
|
|
|
<ion-view id="join" class="settings" show-tabs>
|
2016-08-31 15:54:53 -04:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-09-16 21:01:19 -03:00
|
|
|
<ion-nav-back-button>
|
|
|
|
|
</ion-nav-back-button>
|
2016-09-01 10:12:06 -03:00
|
|
|
<ion-nav-title>{{'Join shared wallet' | translate}}</ion-nav-title>
|
2016-08-18 00:27:23 -03:00
|
|
|
</ion-nav-bar>
|
2016-08-16 17:45:20 -03:00
|
|
|
|
2016-08-18 00:27:23 -03:00
|
|
|
|
2017-05-22 21:28:41 -03:00
|
|
|
<ion-content>
|
2016-08-16 17:45:20 -03:00
|
|
|
|
2017-05-22 21:05:32 -03:00
|
|
|
<form name="setupForm" ng-submit="join()" novalidate>
|
2015-03-06 12:00:10 -03:00
|
|
|
|
2016-10-13 01:31:15 -04:00
|
|
|
<div class="list settings-list settings-input-group">
|
2016-08-16 17:45:20 -03:00
|
|
|
|
2016-09-17 18:04:54 -03: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 21:28:41 -03:00
|
|
|
placeholder="Satoshi"
|
2016-09-17 18:04:54 -03:00
|
|
|
name="myName"
|
2017-05-22 21:05:32 -03:00
|
|
|
ng-model="formData.myName"
|
|
|
|
|
required>
|
2016-09-17 18:04:54 -03:00
|
|
|
</label>
|
|
|
|
|
|
2016-10-26 15:54:29 -03: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 21:05:32 -03: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 15:54:29 -03:00
|
|
|
</div>
|
2016-09-17 18:04:54 -03:00
|
|
|
<input id="secret"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="{{'Paste invitation here'|translate}}"
|
|
|
|
|
name="secret"
|
2017-05-22 21:05:32 -03:00
|
|
|
ng-model="formData.secret"
|
2016-09-17 18:04:54 -03:00
|
|
|
wallet-secret required>
|
2016-10-26 15:54:29 -03:00
|
|
|
</label>
|
|
|
|
|
<div class="qr-scan-icon">
|
2017-05-22 17:30:24 -03:00
|
|
|
<qr-scanner class="qr-icon size-24" on-scan="onQrCodeScannedJoin(data)"></qr-scanner>
|
2016-08-18 13:15:25 -03:00
|
|
|
</div>
|
2016-10-26 15:54:29 -03:00
|
|
|
</div>
|
2017-08-28 12:57:32 -03:00
|
|
|
|
2017-08-30 16:38:42 -03:00
|
|
|
<div ng-include="'views/includes/cash.html'" ng-if="enableCash"></div>
|
2017-08-28 12:57:32 -03:00
|
|
|
|
2016-10-07 16:23:08 -03:00
|
|
|
<div class="item item-divider"></div>
|
|
|
|
|
|
|
|
|
|
<a class="item" ng-click="showAdvChange()">
|
2016-08-16 17:45:20 -03:00
|
|
|
<span translate ng-show="!showAdv">Show advanced options</span>
|
|
|
|
|
<span translate ng-show="showAdv">Hide advanced options</span>
|
2016-10-07 16:23:08 -03:00
|
|
|
</a>
|
2016-08-16 17:45:20 -03:00
|
|
|
|
|
|
|
|
<div ng-show="showAdv">
|
2015-11-04 15:45:33 -03:00
|
|
|
|
2016-08-16 17:45:20 -03:00
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
|
<span class="input-label">Wallet Service URL</span>
|
2017-05-22 21:05:32 -03:00
|
|
|
<input type="text" id="bwsurl" name="bwsurl" ng-model="formData.bwsurl">
|
2016-08-16 17:45:20 -03:00
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
<label class="item item-input item-select">
|
|
|
|
|
<div class="input-label" translate>
|
|
|
|
|
Wallet Key
|
2015-10-22 12:50:43 -03:00
|
|
|
</div>
|
2016-08-16 17:45:20 -03:00
|
|
|
<select class="m10t"
|
2017-05-29 15:04:22 -03:00
|
|
|
ng-model="formData.seedSource"
|
2017-05-22 17:30:24 -03:00
|
|
|
ng-options="seed as seed.label for seed in seedOptions"
|
2017-05-22 21:34:48 -03:00
|
|
|
ng-change="resizeView()">
|
2016-08-16 17:45:20 -03:00
|
|
|
</select>
|
|
|
|
|
</label>
|
2015-09-03 01:49:48 -03:00
|
|
|
|
2016-08-16 17:45:20 -03:00
|
|
|
<label class="item item-input item-stacked-label"
|
2017-05-29 15:04:22 -03:00
|
|
|
ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
|
2016-08-16 17:45:20 -03:00
|
|
|
<span class="input-label" translate>Account Number</span>
|
2017-05-22 21:05:32 -03:00
|
|
|
<input type="number" id="account" ng-model="formData.account" ignore-mouse-wheel>
|
2016-08-16 17:45:20 -03:00
|
|
|
</label>
|
|
|
|
|
|
2017-05-29 15:04:22 -03:00
|
|
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
2016-08-16 17:45:20 -03: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 21:05:32 -03:00
|
|
|
ng-model="formData.privateKey">
|
2016-08-16 17:45:20 -03:00
|
|
|
</label>
|
|
|
|
|
|
2017-05-29 15:04:22 -03:00
|
|
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
2016-08-16 17:45:20 -03:00
|
|
|
<span class="input-label" translate>Derivation Path</span>
|
|
|
|
|
<input type="text"
|
|
|
|
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
|
|
|
|
name="derivationPath"
|
2017-05-22 21:05:32 -03:00
|
|
|
ng-model="formData.derivationPath">
|
2016-08-16 17:45:20 -03:00
|
|
|
</label>
|
2015-11-04 15:45:33 -03:00
|
|
|
|
|
|
|
|
</div> <!-- advanced -->
|
2016-08-16 17:45:20 -03:00
|
|
|
</div> <!-- list -->
|
|
|
|
|
|
2018-02-01 17:59:17 -04:00
|
|
|
<button type="submit" class="button button-standard button-primary" ng-disabled="setupForm.$invalid" translate>
|
2016-10-07 16:23:08 -03:00
|
|
|
translate>Join
|
2016-08-16 17:45:20 -03:00
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</ion-content>
|
|
|
|
|
</ion-view>
|