Anupriya commited on
Commit ·
a998588
1
Parent(s): 04830fa
reading component back arrow
Browse files
src/app/reading/reading.component.html
CHANGED
|
@@ -87,7 +87,12 @@
|
|
| 87 |
<div class="mcq-card" *ngIf="hasStarted && questions?.length">
|
| 88 |
<div class="mcq-card__header">
|
| 89 |
|
| 90 |
-
<img src="assets/images/reading/back.png"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
<h3 class="mcq-card__title">Question {{ currentQuestionIndex + 1 }} of {{ questions.length }}</h3>
|
| 93 |
<div class="mcq-card__actions">
|
|
|
|
| 87 |
<div class="mcq-card" *ngIf="hasStarted && questions?.length">
|
| 88 |
<div class="mcq-card__header">
|
| 89 |
|
| 90 |
+
<img src="assets/images/reading/back.png"
|
| 91 |
+
alt="Back"
|
| 92 |
+
class="icon-img"
|
| 93 |
+
(click)="goToReadingPassage()"
|
| 94 |
+
tabindex="0"
|
| 95 |
+
(keydown.enter)="goToReadingPassage()" />
|
| 96 |
|
| 97 |
<h3 class="mcq-card__title">Question {{ currentQuestionIndex + 1 }} of {{ questions.length }}</h3>
|
| 98 |
<div class="mcq-card__actions">
|
src/app/reading/reading.component.ts
CHANGED
|
@@ -482,4 +482,9 @@ export class ReadingComponent {
|
|
| 482 |
private refreshGenerateQuestionsState(): void {
|
| 483 |
this.isGenerateQuestionDisabled = !(this.content && this.content.trim().length > 0);
|
| 484 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 485 |
}
|
|
|
|
| 482 |
private refreshGenerateQuestionsState(): void {
|
| 483 |
this.isGenerateQuestionDisabled = !(this.content && this.content.trim().length > 0);
|
| 484 |
}
|
| 485 |
+
|
| 486 |
+
goToReadingPassage(): void {
|
| 487 |
+
this.hasStarted = false;
|
| 488 |
+
this.refreshGenerateQuestionsState();
|
| 489 |
+
}
|
| 490 |
}
|