Commit 75eb3bb7 authored by dev0tion's avatar dev0tion

Decrypt on enter pressed

parent 7a2c73f0
......@@ -14,7 +14,7 @@
</div>
<div class="form-group">
<label class="text-left" for="Password">Password</label>
<input type="password" class="form-control" id="Password" formControlName="password" placeholder="Enter your password.">
<input type="password" class="form-control" id="Password" formControlName="password" placeholder="Enter your password." (keyup.enter)="onEnter()">
<div *ngIf="formErrors.password" class="form-control-feedback">{{ formErrors.password }}</div>
</div>
</form>
......
......@@ -80,6 +80,12 @@ export class LoginComponent implements OnInit {
this.router.navigate(['/setup']);
}
private onEnter() {
if (this.openWalletForm.valid) {
this.onDecryptClicked();
}
}
private setGlobalWalletName(walletName: string) {
this.globalService.setWalletName(walletName);
}
......
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