Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/Improve login dialog (#2124)
bptrgx2bf4f1237a42
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 074737a6cd..e3d3ea8873 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.tsindex 85af8aaeed..b3236b2be9 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.stemplateUrl: 'login-with-access-token-dialog.html'})export class LoginWithAccessTokenDialog {+ public isAccessTokenHidden = true;+public constructor(@Inject(MAT_DIALOG_DATA) public data: any,public dialogRef: MatDialogRef<LoginWithAccessTokenDialog>,@@ -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.htmlindex 5dfc84a022..080ad4428c 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 @@<div class="py-3" mat-dialog-content><div class="align-items-center d-flex flex-column">- <mat-form-field appearance="outline" class="without-hint w-100">- <mat-label i18n>Security Token</mat-label>- <textarea- cdkTextareaAutosize- matInput- type="text"- [(ngModel)]="data.accessToken"- ></textarea>- </mat-form-field>+ <form class="w-100" (ngSubmit)="onLoginWithAccessToken()">+ <mat-form-field appearance="outline" class="without-hint w-100">+ <mat-label i18n>Security Token</mat-label>+ <input+ matInput+ name="password"+ [type]="isAccessTokenHidden ? 'password' : 'text'"+ [(ngModel)]="data.accessToken"+ />+ <button+ mat-button+ matSuffix+ type="button"+ (click)="isAccessTokenHidden = !isAccessTokenHidden"+ >+ <ion-icon+ [name]="isAccessTokenHidden ? 'eye-outline' : 'eye-off-outline'"+ ></ion-icon>+ </button>+ </mat-form-field>+ </form><ng-container *ngIf="data.hasPermissionToUseSocialLogin"><div class="my-3 text-center text-muted" i18n>or</div><div class="d-flex flex-column">