mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-22 08:30:09 +00:00
Link to preferences
This commit is contained in:
@ -2,6 +2,14 @@
|
|||||||
<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)="goToPreferences()"
|
||||||
|
class="add-button"
|
||||||
|
>
|
||||||
|
Go to preferences
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
class="col"
|
class="col"
|
||||||
mat-raised-button
|
mat-raised-button
|
||||||
|
@ -83,6 +83,11 @@ export class ProjectsComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goToPreferences() {
|
||||||
|
this.router.navigate(['/server', this.server.id, 'preferences'])
|
||||||
|
.catch(error => this.toasterService.error('Cannot navigate to the preferences'));
|
||||||
|
}
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
this.projectService.list(this.server).subscribe(
|
this.projectService.list(this.server).subscribe(
|
||||||
(projects: Project[]) => {
|
(projects: Project[]) => {
|
||||||
|
Reference in New Issue
Block a user