From e863c1f6e72dc7bce8757442e5a8ef298c5ae9da Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:45:54 +0200 Subject: [PATCH] Redirection to login page updated --- src/app/components/login/login.component.ts | 4 ++++ src/app/components/servers/servers.component.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts index 3a0eac53..ade03b8b 100644 --- a/src/app/components/login/login.component.ts +++ b/src/app/components/login/login.component.ts @@ -43,6 +43,10 @@ export class LoginComponent implements OnInit { this.serverService.get(parseInt(server_id, 10)).then((server: Server) => { this.server = server; + if (server.authToken) { + this.router.navigate(['/server', this.server.id, 'projects']); + } + this.versionService.get(this.server).subscribe((version: Version) => { this.version = version.version; }); diff --git a/src/app/components/servers/servers.component.html b/src/app/components/servers/servers.component.html index 178a1b2e..f627d98b 100644 --- a/src/app/components/servers/servers.component.html +++ b/src/app/components/servers/servers.component.html @@ -15,7 +15,7 @@ {{ row.name }}