feat(vocab): remove daily hard marked count and adjust practice logic
This commit is contained in:
@@ -209,7 +209,6 @@ export default {
|
||||
hardPhaseActive: false,
|
||||
hardMasteryByKey: {}, // { [hardKey]: consecutiveCorrect }
|
||||
cycleAskedIds: [],
|
||||
dailyHardMarkedCount: 0,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -448,12 +447,11 @@ export default {
|
||||
}
|
||||
this.saveHardVocabMap();
|
||||
if (this.srsMode) {
|
||||
this.dailyHardMarkedCount += 1;
|
||||
this.maybeStartDailyHardPractice();
|
||||
}
|
||||
},
|
||||
maybeStartDailyHardPractice() {
|
||||
if (this.dailyHardMarkedCount < MAX_DAILY_HARD_VOCABS) return;
|
||||
if (this.hardCount < MAX_DAILY_HARD_VOCABS) return;
|
||||
const callback = this.onDailyHardLimitReached;
|
||||
this.close();
|
||||
this.$nextTick(() => {
|
||||
@@ -636,12 +634,12 @@ export default {
|
||||
this.hardPhaseActive = false;
|
||||
this.hardMasteryByKey = {};
|
||||
this.cycleAskedIds = [];
|
||||
this.dailyHardMarkedCount = 0;
|
||||
this.locked = false;
|
||||
this.resetQuestion();
|
||||
this.$refs.dialog.open();
|
||||
this.$nextTick(() => {
|
||||
document.addEventListener('keydown', this.handleKeyDown);
|
||||
if (this.srsMode) this.maybeStartDailyHardPractice();
|
||||
});
|
||||
this.loadHardVocabMap();
|
||||
this.reloadPool();
|
||||
|
||||
Reference in New Issue
Block a user