mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-30 08:03:52 +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.serverService.get(parseInt(server_id, 10)).then((server: Server) => {
|
||||||
this.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.versionService.get(this.server).subscribe((version: Version) => {
|
||||||
this.version = version.version;
|
this.version = version.version;
|
||||||
});
|
});
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<mat-cell *matCellDef="let row">
|
<mat-cell *matCellDef="let row">
|
||||||
<a
|
<a
|
||||||
*ngIf="getServerStatus(row) === 'running' || row.location === 'remote' || row.location === 'bundled'"
|
*ngIf="getServerStatus(row) === 'running' || row.location === 'remote' || row.location === 'bundled'"
|
||||||
[routerLink]="['/server', row.id, 'projects']"
|
[routerLink]="['/server', row.id, 'login']"
|
||||||
class="table-link"
|
class="table-link"
|
||||||
>{{ row.name }}</a
|
>{{ row.name }}</a
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user