Browse Source

Bugfix/submit form of login with access token dialog with enter key press (#5751)

* Fix form submit with enter key press

* Update changelog
pull/5787/head
jjs2099 2 weeks ago
committed by Sven Günther
parent
commit
422a7b145e
  1. 1
      CHANGELOG.md
  2. 7
      apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html

1
CHANGELOG.md

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed the enter key press to submit the form of the login with access token dialog
- Fixed an issue in the database seeding process caused by unresolved environment variables in `DATABASE_URL` - Fixed an issue in the database seeding process caused by unresolved environment variables in `DATABASE_URL`
## 2.209.0 - 2025-10-18 ## 2.209.0 - 2025-10-18

7
apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html

@ -2,13 +2,14 @@
<div class="py-3" mat-dialog-content> <div class="py-3" mat-dialog-content>
<div class="align-items-center d-flex flex-column"> <div class="align-items-center d-flex flex-column">
<form class="w-100" (ngSubmit)="onLoginWithAccessToken()"> <form class="w-100">
<mat-form-field appearance="outline" class="without-hint w-100"> <mat-form-field appearance="outline" class="without-hint w-100">
<mat-label i18n>Security Token</mat-label> <mat-label i18n>Security Token</mat-label>
<input <input
matInput matInput
[formControl]="accessTokenFormControl" [formControl]="accessTokenFormControl"
[type]="isAccessTokenHidden ? 'password' : 'text'" [type]="isAccessTokenHidden ? 'password' : 'text'"
(keydown.enter)="onLoginWithAccessToken(); $event.preventDefault()"
/> />
<button <button
mat-button mat-button
@ -21,7 +22,7 @@
/> />
</button> </button>
</mat-form-field> </mat-form-field>
</form>
@if (data.hasPermissionToUseSocialLogin) { @if (data.hasPermissionToUseSocialLogin) {
<div class="my-3 text-center text-muted" i18n>or</div> <div class="my-3 text-center text-muted" i18n>or</div>
<div class="d-flex flex-column"> <div class="d-flex flex-column">
@ -48,8 +49,10 @@
> >
</div> </div>
} }
</form>
</div> </div>
</div> </div>
<div mat-dialog-actions> <div mat-dialog-actions>
<div class="flex-grow-1"> <div class="flex-grow-1">
<mat-checkbox color="primary" i18n (change)="onChangeStaySignedIn($event)" <mat-checkbox color="primary" i18n (change)="onChangeStaySignedIn($event)"

Loading…
Cancel
Save