fix(vocab): isolate SRS updates to daily review
This commit is contained in:
@@ -4383,23 +4383,6 @@ export default {
|
|||||||
.concat(withoutParentheses ? this.expandSingleAnswerVariants(withoutParentheses) : [])
|
.concat(withoutParentheses ? this.expandSingleAnswerVariants(withoutParentheses) : [])
|
||||||
)];
|
)];
|
||||||
},
|
},
|
||||||
reportSrsReviewForCurrentQuestion(isCorrect) {
|
|
||||||
if (!this.currentVocabQuestion?.vocab || !this.courseId) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const vocab = this.currentVocabQuestion.vocab;
|
|
||||||
apiClient.post('/api/vocab/srs/review', {
|
|
||||||
courseId: this.courseId,
|
|
||||||
lessonId: vocab.lessonId || this.lessonId,
|
|
||||||
itemKey: vocab.itemKey || null,
|
|
||||||
learning: vocab.learning,
|
|
||||||
reference: vocab.reference,
|
|
||||||
direction: this.vocabTrainerDirection,
|
|
||||||
correct: Boolean(isCorrect)
|
|
||||||
}).catch((error) => {
|
|
||||||
console.warn('[VocabLessonView] SRS review could not be saved:', error);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
checkVocabAnswer() {
|
checkVocabAnswer() {
|
||||||
if (!this.currentVocabQuestion) return;
|
if (!this.currentVocabQuestion) return;
|
||||||
|
|
||||||
@@ -4468,8 +4451,6 @@ export default {
|
|||||||
this.vocabTrainerHardMastery[key] = 0;
|
this.vocabTrainerHardMastery[key] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.reportSrsReviewForCurrentQuestion(this.vocabTrainerLastCorrect);
|
|
||||||
|
|
||||||
this.vocabTrainerAnswered = true;
|
this.vocabTrainerAnswered = true;
|
||||||
|
|
||||||
// Automatisch zur nächsten Frage nach kurzer Pause (nur bei richtiger Antwort)
|
// Automatisch zur nächsten Frage nach kurzer Pause (nur bei richtiger Antwort)
|
||||||
|
|||||||
Reference in New Issue
Block a user