spaced repetition

This commit is contained in:
2024-11-29 23:00:15 +01:00
parent c116b56934
commit b43044a0dd
2 changed files with 75 additions and 18 deletions

View File

@@ -9,7 +9,7 @@
<button
(click)="showText()"
class="bg-green-500 disabled:bg-green-200 text-white py-2 px-4 rounded hover:bg-green-600"
[disabled]="isShowingBox || currentBoxIndex >= boxes.length"
[disabled]="isShowingBox || currentBoxIndex >= boxesToReview.length"
>
Anzeigen
</button>
@@ -18,7 +18,7 @@
<button
(click)="markKnown()"
class="bg-blue-500 disabled:bg-blue-200 text-white py-2 px-4 rounded hover:bg-blue-600"
[disabled]="!isShowingBox || currentBoxIndex >= boxes.length"
[disabled]="!isShowingBox || currentBoxIndex >= boxesToReview.length"
>
Gewusst
</button>
@@ -27,10 +27,19 @@
<button
(click)="markUnknown()"
class="bg-red-500 disabled:bg-red-200 text-white py-2 px-4 rounded hover:bg-red-600"
[disabled]="!isShowingBox || currentBoxIndex >= boxes.length"
[disabled]="!isShowingBox || currentBoxIndex >= boxesToReview.length"
>
Nicht gewusst
</button>
<!-- Nächstes Bild Button -->
<button
(click)="skipToNextImage()"
class="bg-yellow-500 disabled:bg-yellow-200 text-white py-2 px-4 rounded hover:bg-yellow-600"
[disabled]="currentImageIndex >= deck.images.length"
>
Nächstes Bild
</button>
</div>
<p class="mt-2">{{ progress }}</p>