mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-31 22:40:43 +00:00
Option to access system status from servers page
This commit is contained in:
parent
4cd9f77732
commit
b1aba60410
@ -2,6 +2,7 @@
|
|||||||
<div class="default-header">
|
<div class="default-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h1 class="col">Projects</h1>
|
<h1 class="col">Projects</h1>
|
||||||
|
<button class="col" mat-raised-button (click)="goToSystemStatus()" class="add-button">Go to system status</button>
|
||||||
<button class="col" mat-raised-button (click)="goToPreferences()" class="add-button">Go to preferences</button>
|
<button class="col" mat-raised-button (click)="goToPreferences()" class="add-button">Go to preferences</button>
|
||||||
<button class="col" mat-raised-button color="primary" (click)="addBlankProject()" class="add-button">
|
<button class="col" mat-raised-button color="primary" (click)="addBlankProject()" class="add-button">
|
||||||
Add blank project
|
Add blank project
|
||||||
|
@ -89,6 +89,12 @@ export class ProjectsComponent implements OnInit {
|
|||||||
.catch((error) => this.toasterService.error('Cannot navigate to the preferences'));
|
.catch((error) => this.toasterService.error('Cannot navigate to the preferences'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goToSystemStatus() {
|
||||||
|
this.router
|
||||||
|
.navigate(['/server', this.server.id, 'systemstatus'])
|
||||||
|
.catch((error) => this.toasterService.error('Cannot navigate to the system status'));
|
||||||
|
}
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
this.projectService.list(this.server).subscribe(
|
this.projectService.list(this.server).subscribe(
|
||||||
(projects: Project[]) => {
|
(projects: Project[]) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user