feat(vocab): synchronize SRS session progress and update related UI elements

This commit is contained in:
Torsten Schulz (local)
2026-08-21 11:31:30 +02:00
parent 2f4657c0fb
commit 62624502e2
4 changed files with 48 additions and 6 deletions

View File

@@ -472,6 +472,9 @@ export default {
session.correctCount = this.correctCount;
session.wrongCount = this.wrongCount;
localStorage.setItem(key, JSON.stringify(session));
window.dispatchEvent(new CustomEvent('yourpart:vocab:srsSession:changed', {
detail: { courseId: this.openParams.courseId }
}));
} catch (_) {
// ignore storage issues (private mode, quota, etc.)
}