Skip to content

Commit

Permalink
Fixed navigation to planner from diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkapok committed Apr 5, 2024
1 parent c3a0050 commit 6969fb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/planner/src/app/diff/diff.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { Location } from '@angular/common';
import { Router } from '@angular/router';
import { ProfileComparatorService } from '../shared/diff/profileComparatorService';
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';

Expand All @@ -11,10 +11,10 @@ import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
export class DiffComponent {
public readonly exclamation = faExclamationCircle;

constructor(public diff: ProfileComparatorService, private location: Location) {
constructor(public diff: ProfileComparatorService, private router: Router) {
}

public goToDashboard(): void {
this.location.go('/');
public async goToDashboard(): Promise<void> {
await this.router.navigate(['/']);
}
}

0 comments on commit 6969fb3

Please sign in to comment.