mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 10:01:44 +00:00
Link to preferences
This commit is contained in:
parent
7b1c5deff5
commit
91cfd1d257
@ -2,6 +2,14 @@
|
||||
<div class="default-header">
|
||||
<div class="row">
|
||||
<h1 class="col">Projects</h1>
|
||||
<button
|
||||
class="col"
|
||||
mat-raised-button
|
||||
(click)="goToPreferences()"
|
||||
class="add-button"
|
||||
>
|
||||
Go to preferences
|
||||
</button>
|
||||
<button
|
||||
class="col"
|
||||
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() {
|
||||
this.projectService.list(this.server).subscribe(
|
||||
(projects: Project[]) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user