Skip to content

Commit

Permalink
[frontend] Fix behaviour on finish-test
Browse files Browse the repository at this point in the history
- avoid double navigation
- ask for leaving timed block etc. before finishing in every case

#413
  • Loading branch information
paflov committed Jan 9, 2024
1 parent 6da4260 commit 1b2e58d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export class TestControllerService {
TestControllerState.TERMINATED
); // last state that will and can be logged

this.router.navigate(['/'], { state: { force } })
this.router.navigate(['/r/starter'], { state: { force } })
.then(navigationSuccessful => {
if (!(navigationSuccessful || force)) {
this.testStatus$.next(oldTestStatus); // navigation was denied, test continues
Expand Down

0 comments on commit 1b2e58d

Please sign in to comment.