Redirection to login page updated

This commit is contained in:
piotrpekala7 2021-04-30 00:45:54 +02:00
parent 9835c106d8
commit e863c1f6e7
2 changed files with 5 additions and 1 deletions

View File

@ -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;
});

View File

@ -15,7 +15,7 @@
<mat-cell *matCellDef="let row">
<a
*ngIf="getServerStatus(row) === 'running' || row.location === 'remote' || row.location === 'bundled'"
[routerLink]="['/server', row.id, 'projects']"
[routerLink]="['/server', row.id, 'login']"
class="table-link"
>{{ row.name }}</a
>