File tree Expand file tree Collapse file tree
frontend/src/app/annotate/navigator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments