Skip to content

Commit f8ced09

Browse files
Remove ID from navigator component
1 parent 6e7fb9f commit f8ced09

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

frontend/src/app/annotate/navigator/navigator.component.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@
2323
<span i18n>Previous</span>
2424
</button>
2525

26-
<div class="problem-info d-flex flex-column align-items-center px-3">
27-
<span
28-
>{{ problem?.id }} of
29-
{{ proofBankStats?.totalProblems }}</span
30-
>
31-
<span class="badge bg-secondary mt-1" i18n>
32-
{{ problem && getProblemLabel(problem) }}
26+
<div class="px-3">
27+
<span i18n>
28+
{{ problem?.id }} of {{ proofBankStats?.totalProblems }}
3329
</span>
3430
</div>
3531

frontend/src/app/annotate/navigator/navigator.component.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,4 @@ export class NavigatorComponent {
6060
}
6161
this.router.navigate(["/annotate", id]);
6262
}
63-
64-
public getProblemLabel(problem: ProblemResponse): string {
65-
const type = problem.type;
66-
let id: string | null = null;
67-
if (type === 'sick') {
68-
id = problem.problem?.pairId?.toString() ?? null;
69-
} else if (type === 'fracas') {
70-
id = problem.problem?.fracasId?.toString() ?? null;
71-
}
72-
return id ? `${type}-${id}` : type;
73-
}
7463
}

0 commit comments

Comments
 (0)