Link to preferences

This commit is contained in:
piotrpekala7 2020-06-22 20:19:23 +02:00
parent 7b1c5deff5
commit 91cfd1d257
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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[]) => {