Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/improve width of user account registration dialog on mobile (#4434)

Thomas Kaula4c78739bbe0
diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.ts
index 45fd53fcc3..66a5f4beb2 100644
--- a/apps/client/src/app/pages/register/register-page.component.ts
+++ b/apps/client/src/app/pages/register/register-page.component.ts
@@ -61,15 +61,18 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
public async onLoginWithInternetIdentity() {
try {
const { authToken } = await this.internetIdentityService.login();
+
this.tokenStorageService.saveToken(authToken);
- this.router.navigate(['/']);
+
+ await this.router.navigate(['/']);
} catch {}
}
public openShowAccessTokenDialog() {
const dialogRef = this.dialog.open(ShowAccessTokenDialog, {
disableClose: true,
- width: '30rem'
+ height: this.deviceType === 'mobile' ? '98vh' : undefined,
+ width: this.deviceType === 'mobile' ? '100vw' : '30rem'
});
dialogRef