Skip to content
Snippets Groups Projects
Commit c9ab29c3 authored by paf's avatar paf
Browse files

Merge branch 'so-krams' of https://github.com/iqb-berlin/testcenter-iqb-ng into so-krams

parents f5904909 f48d11bc
No related branches found
Tags 6.1.0
No related merge requests found
......@@ -690,7 +690,6 @@ export class TestControllerComponent implements OnInit, OnDestroy {
case 'goto':
this.tcs.testStatus$.next(TestControllerState.RUNNING);
let gotoTarget: string;
console.log('goto', this.allUnitIds);
if ((params.length === 2) && (params[0] === 'id')) {
gotoTarget = (this.allUnitIds.indexOf(params[1]) + 1).toString(10);
} else if (params.length === 1) {
......
......@@ -346,6 +346,8 @@ export class TestControllerService {
this.router.navigate([`/t/${this.testId}/u/${navString}`],
{state: {force: force}}).then(navOk => {
if (!navOk) {
console.log('navigation failed ("' + navString + '"');
/*
const navTarget = Number(navString);
if (!isNaN(navTarget)) {
let unitSequenceId = this.currentUnitSequenceId;
......@@ -358,6 +360,7 @@ export class TestControllerService {
{state: {force: force}});
}
}
*/
}
});
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment