diff --git a/frontend/src/views/social/VocabLessonView.vue b/frontend/src/views/social/VocabLessonView.vue
index 46bb1fa..7b781c5 100644
--- a/frontend/src/views/social/VocabLessonView.vue
+++ b/frontend/src/views/social/VocabLessonView.vue
@@ -22,9 +22,9 @@
:class="{ active: activeTab === 'exercises' }"
@click="activeTab = 'exercises'"
class="tab-button"
- :disabled="!hasExercises"
>
{{ $t('socialnetwork.vocab.courses.exercises') }}
+ ({{ lesson?.grammarExercises?.length || 0 }})
@@ -65,7 +65,7 @@
-
+
{{ $t('socialnetwork.vocab.courses.grammarExercises') }}
{{ exercise.title }}
@@ -157,7 +157,7 @@
-
+
{{ $t('socialnetwork.vocab.courses.noExercises') }}
@@ -267,6 +267,9 @@ export default {
this.lesson = res.data;
console.log('[VocabLessonView] Geladene Lektion:', this.lesson);
console.log('[VocabLessonView] Übungen:', this.lesson?.grammarExercises);
+ console.log('[VocabLessonView] Anzahl Übungen:', this.lesson?.grammarExercises?.length || 0);
+ console.log('[VocabLessonView] activeTab:', this.activeTab);
+ console.log('[VocabLessonView] hasExercises:', this.hasExercises);
// Initialisiere Übungen aus der Lektion oder lade sie separat
if (this.lesson && this.lesson.id) {
if (this.lesson.grammarExercises && this.lesson.grammarExercises.length > 0) {