diff --git a/CHANGELOG.md b/CHANGELOG.md index 074737a6..e3d3ea88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Improved the usability of the login dialog - Disabled the caching in the health check endpoints for data providers - Improved the content of the Frequently Asked Questions (FAQ) page - Upgraded `prisma` from version `4.15.0` to `4.16.2` diff --git a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts index 85af8aae..b3236b2b 100644 --- a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts +++ b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts @@ -16,6 +16,8 @@ import { TokenStorageService } from '@ghostfolio/client/services/token-storage.s templateUrl: 'login-with-access-token-dialog.html' }) export class LoginWithAccessTokenDialog { + public isAccessTokenHidden = true; + public constructor( @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef, @@ -38,6 +40,12 @@ export class LoginWithAccessTokenDialog { this.dialogRef.close(); } + public onLoginWithAccessToken() { + if (this.data.accessToken) { + this.dialogRef.close(this.data); + } + } + public async onLoginWithInternetIdentity() { try { const { authToken } = await this.internetIdentityService.login(); diff --git a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html index 5dfc84a0..080ad442 100644 --- a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html +++ b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html @@ -6,15 +6,27 @@
- - Security Token - - +
+ + Security Token + + + +
or