mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 02:39:50 +00:00
Redirection to login page updated
This commit is contained in:
parent
9835c106d8
commit
e863c1f6e7
@ -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;
|
||||
});
|
||||
|
@ -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
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user