Commit eda831ee authored by dev0tion's avatar dev0tion

Remove network parameter from recovery component

parent e741314c
......@@ -27,18 +27,11 @@
<input type="text" class="form-control form-control-success" formControlName="walletMnemonic" id="walletName" placeholder="Enter your secret words.">
<div *ngIf="formErrors.walletMnemonic" class="text-danger mt-2">{{ formErrors.walletMnemonic }}</div>
</div>
<div class="form-group col-6">
<div class="form-group col-12">
<label class="text-left" for="walletPassword">Password</label>
<input type="password" class="form-control form-control-success" formControlName="walletPassword" id="walletPassword" placeholder="Enter a password.">
<div *ngIf="formErrors.walletPassword" class="text-danger mt-2">{{ formErrors.walletPassword }}</div>
</div>
<div class="form-group col-6">
<label class="text-left" for="walletNetwork">Network</label>
<select class="form-control custom-select" name="network" formControlName="selectNetwork">
<!--<option value="main">Main</option>-->
<option value="test">Testnet</option>
</select>
</div>
</form>
</div>
<!-- /row-->
......
......@@ -108,7 +108,6 @@ export class RecoverComponent implements OnInit {
this.recoverWalletForm.get("walletName").value,
this.recoverWalletForm.get("walletMnemonic").value,
this.recoverWalletForm.get("walletPassword").value,
this.recoverWalletForm.get("selectNetwork").value,
recoveryDate
);
this.recoverWallets(this.walletRecovery);
......
export class WalletRecovery {
constructor(walletName: string, mnemonic: string, password: string, network:string, creationDate: Date, folderPath: string = null) {
constructor(walletName: string, mnemonic: string, password: string, creationDate: Date, folderPath: string = null) {
this.name = walletName;
this.mnemonic = mnemonic;
this.password = password;
this.network = network;
this.creationDate = creationDate;
this.folderPath = folderPath;
}
......@@ -12,7 +11,6 @@ export class WalletRecovery {
mnemonic: string;
password: string;
name: string;
network: string;
creationDate: Date;
folderPath?: string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment