mirror of https://github.com/BTCPrivate/copay.git
fix seed source selector
This commit is contained in:
parent
82112dc66b
commit
b8a09a0154
|
@ -84,7 +84,9 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
supportsTestnet: false
|
supportsTestnet: false
|
||||||
}];
|
}];
|
||||||
|
|
||||||
$scope.seedSource = seedOptions[0];
|
console.log(seedOptions[0]);
|
||||||
|
console.log("############################111");
|
||||||
|
$scope.formData.seedSource = seedOptions[0];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@ -139,7 +141,7 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
walletPrivKey: $scope.formData._walletPrivKey, // Only for testing
|
walletPrivKey: $scope.formData._walletPrivKey, // Only for testing
|
||||||
};
|
};
|
||||||
|
|
||||||
var setSeed = $scope.seedSource.id == 'set';
|
var setSeed = $scope.formData.seedSource.id == 'set';
|
||||||
if (setSeed) {
|
if (setSeed) {
|
||||||
|
|
||||||
var words = $scope.formData.privateKey || '';
|
var words = $scope.formData.privateKey || '';
|
||||||
|
@ -169,21 +171,21 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.seedSource.id == walletService.externalSource.ledger.id || $scope.seedSource.id == walletService.externalSource.trezor.id || $scope.seedSource.id == walletService.externalSource.intelTEE.id) {
|
if ($scope.formData.seedSource.id == walletService.externalSource.ledger.id || $scope.formData.seedSource.id == walletService.externalSource.trezor.id || $scope.formData.seedSource.id == walletService.externalSource.intelTEE.id) {
|
||||||
var account = $scope.formData.account;
|
var account = $scope.formData.account;
|
||||||
if (!account || account < 1) {
|
if (!account || account < 1) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number'));
|
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.seedSource.id == walletService.externalSource.trezor.id || $scope.seedSource.id == walletService.externalSource.intelTEE.id)
|
if ($scope.formData.seedSource.id == walletService.externalSource.trezor.id || $scope.formData.seedSource.id == walletService.externalSource.intelTEE.id)
|
||||||
account = account - 1;
|
account = account - 1;
|
||||||
|
|
||||||
opts.account = account;
|
opts.account = account;
|
||||||
ongoingProcess.set('connecting ' + $scope.seedSource.id, true);
|
ongoingProcess.set('connecting ' + $scope.formData.seedSource.id, true);
|
||||||
|
|
||||||
var src;
|
var src;
|
||||||
switch ($scope.seedSource.id) {
|
switch ($scope.formData.seedSource.id) {
|
||||||
case walletService.externalSource.ledger.id:
|
case walletService.externalSource.ledger.id:
|
||||||
src = ledger;
|
src = ledger;
|
||||||
break;
|
break;
|
||||||
|
@ -199,7 +201,7 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
}
|
}
|
||||||
|
|
||||||
src.getInfoForNewWallet(opts.n > 1, account, opts.networkName, function(err, lopts) {
|
src.getInfoForNewWallet(opts.n > 1, account, opts.networkName, function(err, lopts) {
|
||||||
ongoingProcess.set('connecting ' + $scope.seedSource.id, false);
|
ongoingProcess.set('connecting ' + $scope.formData.seedSource.id, false);
|
||||||
if (err) {
|
if (err) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||||
return;
|
return;
|
||||||
|
@ -226,7 +228,7 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
walletService.updateRemotePreferences(client);
|
walletService.updateRemotePreferences(client);
|
||||||
pushNotificationsService.updateSubscription(client);
|
pushNotificationsService.updateSubscription(client);
|
||||||
|
|
||||||
if ($scope.seedSource.id == 'set') {
|
if ($scope.formData.seedSource.id == 'set') {
|
||||||
profileService.setBackupFlag(client.credentials.walletId);
|
profileService.setBackupFlag(client.credentials.walletId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,19 +58,19 @@
|
||||||
Wallet Key
|
Wallet Key
|
||||||
</div>
|
</div>
|
||||||
<select class="m10t"
|
<select class="m10t"
|
||||||
ng-model="seedSource"
|
ng-model="formData.seedSource"
|
||||||
ng-options="seed as seed.label for seed in seedOptions"
|
ng-options="seed as seed.label for seed in seedOptions"
|
||||||
ng-change="resizeView()">
|
ng-change="resizeView()">
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label"
|
<label class="item item-input item-stacked-label"
|
||||||
ng-show="seedSource.id == 'trezor' || seedSource.id == 'ledger'">
|
ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
|
||||||
<span class="input-label" translate>Account Number</span>
|
<span class="input-label" translate>Account Number</span>
|
||||||
<input type="number" id="account" ng-model="formData.account" ignore-mouse-wheel>
|
<input type="number" id="account" ng-model="formData.account" ignore-mouse-wheel>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
||||||
<input id="ext-master"
|
<input id="ext-master"
|
||||||
placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
||||||
|
@ -80,16 +80,16 @@
|
||||||
ng-model="formData.privateKey">
|
ng-model="formData.privateKey">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()" ng-show="seedSource.id == 'new' || seedSource.id == 'set'">
|
<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'">
|
||||||
<span class="toggle-label" translate>Add a password</span>
|
<span class="toggle-label" translate>Add a password</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<span ng-show="seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
<span ng-show="formData.seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
||||||
<span ng-show="seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
<span ng-show="formData.seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center box-notification error" ng-show="(seedSource.id =='new' || seedSource.id =='set') && encrypt">
|
<div class="text-center box-notification error" ng-show="(formData.seedSource.id =='new' || formData.seedSource.id =='set') && encrypt">
|
||||||
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
<span class="toggle-label" translate>I have written it down</span>
|
<span class="toggle-label" translate>I have written it down</span>
|
||||||
</ion-checkbox>
|
</ion-checkbox>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Derivation Path</span>
|
<span class="input-label" translate>Derivation Path</span>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
</div> <!-- list -->
|
</div> <!-- list -->
|
||||||
|
|
||||||
<button type="submit" class="button button-standard button-primary"
|
<button type="submit" class="button button-standard button-primary"
|
||||||
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((seedSource.id == 'new' && !formData.createPassphrase) || (seedSource.id == 'set' && !formData.passphrase)))"
|
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((formData.seedSource.id == 'new' && !formData.createPassphrase) || (formData.seedSource.id == 'set' && !formData.passphrase)))"
|
||||||
translate>Join
|
translate>Join
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -36,15 +36,15 @@
|
||||||
<div class="input-label" translate>
|
<div class="input-label" translate>
|
||||||
Wallet Key
|
Wallet Key
|
||||||
</div>
|
</div>
|
||||||
<select class="m10t" ng-model="seedSource" ng-options="seed as seed.label for seed in seedOptions" ng-change="resizeView()"></select>
|
<select class="m10t" ng-model="formData.seedSource" ng-options="seed as seed.label for seed in seedOptions" ng-change="resizeView()"></select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'trezor' || seedSource.id == 'ledger'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
|
||||||
<span class="input-label" translate>Account Number</span>
|
<span class="input-label" translate>Account Number</span>
|
||||||
<input type="number" ng-model="formData.account" ignore-mouse-wheel>
|
<input type="number" ng-model="formData.account" ignore-mouse-wheel>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
||||||
<input placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
<input placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -52,18 +52,18 @@
|
||||||
ng-model="formData.privateKey">
|
ng-model="formData.privateKey">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div ng-show="seedSource.id == 'new' || seedSource.id == 'set'">
|
<div ng-show="formData.seedSource.id == 'new' || formData.seedSource.id == 'set'">
|
||||||
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()">
|
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()">
|
||||||
<span class="toggle-label" translate>Add a password</span>
|
<span class="toggle-label" translate>Add a password</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<span ng-show="seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
<span ng-show="formData.seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
||||||
<span ng-show="seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
<span ng-show="formData.seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
</div>
|
</div>
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center box-notification error" ng-show="(seedSource.id =='new' || seedSource.id =='set') && encrypt">
|
<div class="text-center box-notification error" ng-show="(formData.seedSource.id =='new' || formData.seedSource.id =='set') && encrypt">
|
||||||
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -105,14 +105,14 @@
|
||||||
<span class="toggle-label" translate>I have written it down</span>
|
<span class="toggle-label" translate>I have written it down</span>
|
||||||
</ion-checkbox>
|
</ion-checkbox>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Derivation Path</span>
|
<span class="input-label" translate>Derivation Path</span>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
||||||
ng-model="formData.derivationPath">
|
ng-model="formData.derivationPath">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<ion-toggle ng-show="seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
|
<ion-toggle ng-show="formData.seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
|
||||||
<span translate>Testnet</span>
|
<span translate>Testnet</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
</div> <!-- list -->
|
</div> <!-- list -->
|
||||||
|
|
||||||
<button type="submit" class="button button-standard button-primary"
|
<button type="submit" class="button button-standard button-primary"
|
||||||
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((seedSource.id == 'new' && !formData.createPassphrase) || (seedSource.id == 'set' && !formData.passphrase)))">
|
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((formData.seedSource.id == 'new' && !formData.createPassphrase) || (formData.seedSource.id == 'set' && !formData.passphrase)))">
|
||||||
<span translate>Create new wallet</span>
|
<span translate>Create new wallet</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -65,15 +65,15 @@
|
||||||
<div class="input-label" translate>
|
<div class="input-label" translate>
|
||||||
Wallet Key
|
Wallet Key
|
||||||
</div>
|
</div>
|
||||||
<select class="m10t" ng-model="seedSource" ng-options="seed as seed.label for seed in seedOptions" ng-change="resizeView()"></select>
|
<select class="m10t" ng-model="formData.seedSource" ng-options="seed as seed.label for seed in seedOptions" ng-change="resizeView()"></select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'trezor' || seedSource.id == 'ledger'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
|
||||||
<span class="input-label" translate>Account Number</span>
|
<span class="input-label" translate>Account Number</span>
|
||||||
<input type="number" ng-model="formData.account" ignore-mouse-wheel>
|
<input type="number" ng-model="formData.account" ignore-mouse-wheel>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
<span class="input-label" translate>Wallet Recovery Phrase</span>
|
||||||
<input placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
<input placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -81,18 +81,18 @@
|
||||||
ng-model="formData.privateKey">
|
ng-model="formData.privateKey">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div ng-show="seedSource.id == 'new' || seedSource.id == 'set'">
|
<div ng-show="formData.seedSource.id == 'new' || formData.seedSource.id == 'set'">
|
||||||
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()">
|
<ion-toggle class="has-comment" ng-model="encrypt" toggle-class="toggle-positive" ng-change="resizeView()">
|
||||||
<span class="toggle-label" translate>Add a password</span>
|
<span class="toggle-label" translate>Add a password</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<span ng-show="seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
<span ng-show="formData.seedSource.id == 'new'" translate>Add an optional password to secure the recovery phrase</span>
|
||||||
<span ng-show="seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
<span ng-show="formData.seedSource.id == 'set'" translate>The recovery phrase could require a password to be imported</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Password'|translate}}"
|
placeholder="{{'Password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
</div>
|
</div>
|
||||||
<div class="item item-input" ng-show="encrypt">
|
<div class="item item-input" ng-show="encrypt">
|
||||||
<input ng-show="seedSource.id == 'new'"
|
<input ng-show="formData.seedSource.id == 'new'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
|
|
||||||
<input ng-show="seedSource.id == 'set'"
|
<input ng-show="formData.seedSource.id == 'set'"
|
||||||
placeholder="{{'Repeat password'|translate}}"
|
placeholder="{{'Repeat password'|translate}}"
|
||||||
type="password"
|
type="password"
|
||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center box-notification error" ng-show="(seedSource.id =='new' || seedSource.id =='set') && encrypt">
|
<div class="text-center box-notification error" ng-show="(formData.seedSource.id =='new' || formData.seedSource.id =='set') && encrypt">
|
||||||
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
<strong translate>This password cannot be recovered. If the password is lost, there is no way you could recover your funds.</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -134,14 +134,14 @@
|
||||||
<span class="toggle-label" translate>I have written it down</span>
|
<span class="toggle-label" translate>I have written it down</span>
|
||||||
</ion-checkbox>
|
</ion-checkbox>
|
||||||
|
|
||||||
<label class="item item-input item-stacked-label" ng-show="seedSource.id == 'set'">
|
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
|
||||||
<span class="input-label" translate>Derivation Path</span>
|
<span class="input-label" translate>Derivation Path</span>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
||||||
ng-model="formData.derivationPath">
|
ng-model="formData.derivationPath">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<ion-toggle ng-show="seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
|
<ion-toggle ng-show="formData.seedSource.supportsTestnet" ng-model="formData.testnetEnabled" toggle-class="toggle-positive">
|
||||||
Testnet
|
Testnet
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
</div> <!-- list -->
|
</div> <!-- list -->
|
||||||
|
|
||||||
<button type="submit" class="button button-standard button-primary"
|
<button type="submit" class="button button-standard button-primary"
|
||||||
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((seedSource.id == 'new' && !formData.createPassphrase) || (seedSource.id == 'set' && !formData.passphrase)))">
|
ng-disabled="setupForm.$invalid || ((encrypt && !formData.passwordSaved) || encrypt && ((formData.seedSource.id == 'new' && !formData.createPassphrase) || (formData.seedSource.id == 'set' && !formData.passphrase)))">
|
||||||
<span translate>Create {{formData.requiredCopayers}}-of-{{formData.totalCopayers}} wallet</span>
|
<span translate>Create {{formData.requiredCopayers}}-of-{{formData.totalCopayers}} wallet</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue