Browse Source
Feature/improve width of user account registration dialog on mobile (#4434)
* Improve width on mobile
pull/4426/head^2
Thomas Kaul
7 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
2 deletions
-
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 |
|
|
|