Feat/Message at 100% progress for optimize (#4069)

This commit is contained in:
Luc Mcgrady 2025-06-11 07:31:17 +01:00 committed by GitHub
parent fe750dba9f
commit 83131cb48e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -483,6 +483,7 @@ deck-config-percent-of-reviews =
*[other] { $pct }% of { $reviews } reviews
}
deck-config-percent-input = { $pct }%
deck-config-checking-for-improvement = Checking for improvement...
deck-config-optimizing-preset = Optimizing preset { $current_count }/{ $total_count }...
deck-config-fsrs-must-be-enabled = FSRS must be enabled first.
deck-config-fsrs-params-optimal = The FSRS parameters currently appear to be optimal.

View file

@ -283,7 +283,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
if (val instanceof ComputeRetentionProgress) {
return `${pct}%`;
} else {
return tr.deckConfigPercentOfReviews({ pct, reviews: val.reviews });
if (val.current === val.total) {
return tr.deckConfigCheckingForImprovement();
} else {
return tr.deckConfigPercentOfReviews({ pct, reviews: val.reviews });
}
}
}