From 0071094e6c40533d13a5e8015a4f00039da970c8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 22 Sep 2023 14:23:38 +1000 Subject: [PATCH] Add warning about all clients needing to support FSRS --- ftl/core/deck-config.ftl | 3 +++ ts/deck-options/AdvancedOptions.svelte | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ftl/core/deck-config.ftl b/ftl/core/deck-config.ftl index 143839f1a..56fe974e1 100644 --- a/ftl/core/deck-config.ftl +++ b/ftl/core/deck-config.ftl @@ -328,6 +328,9 @@ deck-config-desired-retention = Desired retention deck-config-smaller-is-better = Smaller numbers indicate better memory estimates. deck-config-steps-too-large-for-fsrs = When FSRS is enabled, interday (re)learning steps are not recommended. deck-config-get-params = Get Params +deck-config-fsrs-on-all-clients = + Please ensure all of your Anki clients are Anki(Mobile) 23.10+ or AnkiDroid 2.17+. FSRS will + not work correctly if one of your clients is older. ## NO NEED TO TRANSLATE. This text is no longer used by Anki, and will be removed in the future. diff --git a/ts/deck-options/AdvancedOptions.svelte b/ts/deck-options/AdvancedOptions.svelte index 435db5b16..d1afe3910 100644 --- a/ts/deck-options/AdvancedOptions.svelte +++ b/ts/deck-options/AdvancedOptions.svelte @@ -20,6 +20,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import type { DeckOptionsState } from "./lib"; import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte"; import SpinBoxRow from "./SpinBoxRow.svelte"; + import Warning from "./Warning.svelte"; export let state: DeckOptionsState; export let api: Record; @@ -74,6 +75,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html modal.show(); carousel.to(index); } + + $: fsrsClientWarning = $config.fsrsEnabled ? tr.deckConfigFsrsOnAllClients() : ""; @@ -94,6 +97,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html FSRS + + {/if}