feat(vocab): synchronize SRS session progress and update related UI elements
This commit is contained in:
@@ -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.)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user