Commit 75eb3bb7 authored by dev0tion's avatar dev0tion

Decrypt on enter pressed

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