mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Show message on pass
This commit is contained in:
parent
e642eb535e
commit
300d050460
2 changed files with 15 additions and 6 deletions
|
|
@ -493,6 +493,7 @@ deck-config-fsrs-bad-fit-warning = Your memory is difficult for FSRS to predict.
|
||||||
- Understand before you memorize.
|
- Understand before you memorize.
|
||||||
|
|
||||||
After you follow these suggestions, it may take weeks or months before parameters become optimal.
|
After you follow these suggestions, it may take weeks or months before parameters become optimal.
|
||||||
|
deck-config-fsrs-good-fit = FSRS is well adjusted to your memory.
|
||||||
|
|
||||||
deck-config-fsrs-params-no-reviews = No reviews found. Make sure this preset is assigned to all decks (including subdecks) that you want to optimize, and try again.
|
deck-config-fsrs-params-no-reviews = No reviews found. Make sure this preset is assigned to all decks (including subdecks) that you want to optimize, and try again.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,12 +190,20 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
)) ||
|
)) ||
|
||||||
resp.params.length === 0;
|
resp.params.length === 0;
|
||||||
|
|
||||||
const health_check_passed =
|
if (resp.healthCheckPassed !== undefined) {
|
||||||
resp.healthCheckPassed && !resp.healthCheckPassed;
|
if (resp.healthCheckPassed) {
|
||||||
|
setTimeout(
|
||||||
if (health_check_passed) {
|
() => alert(tr.deckConfigFsrsGoodFit()),
|
||||||
setTimeout(() => alert(tr.deckConfigFsrsBadFitWarning()));
|
200,
|
||||||
} else if (already_optimal) {
|
);
|
||||||
|
} else {
|
||||||
|
setTimeout(
|
||||||
|
() => alert(tr.deckConfigFsrsBadFitWarning()),
|
||||||
|
200,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (already_optimal) {
|
||||||
const msg = resp.fsrsItems
|
const msg = resp.fsrsItems
|
||||||
? tr.deckConfigFsrsParamsOptimal()
|
? tr.deckConfigFsrsParamsOptimal()
|
||||||
: tr.deckConfigFsrsParamsNoReviews();
|
: tr.deckConfigFsrsParamsNoReviews();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue