mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 23:57:13 -05:00
- Daily limits are no longer inherited - each deck limits its own cards, and the selected deck enforces a maximum limit. - Fetching of review cards now uses a single query, and sorts in advance. In collections with a large number of overdue cards and decks, this is faster than iterating over each deck in turn. - Include interday learning count in review count & review limit, and allow them to be buried. - Warn when parent review limit is lower than child deck in deck options. - Cap the new card limit to the review limit. - Add option to control whether new card fetching short-circuits.
37 lines
1.1 KiB
Svelte
37 lines
1.1 KiB
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import * as tr from "lib/i18n";
|
|
import CheckBox from "./CheckBox.svelte";
|
|
import EnumSelector from "./EnumSelector.svelte";
|
|
import type { DeckOptionsState } from "./lib";
|
|
|
|
export let state: DeckOptionsState;
|
|
let config = state.currentConfig;
|
|
let defaults = state.defaults;
|
|
|
|
const reviewOrderChoices = [
|
|
tr.deckConfigSortOrderDueDateThenRandom(),
|
|
tr.deckConfigSortOrderAscendingIntervals(),
|
|
tr.deckConfigSortOrderDescendingIntervals(),
|
|
];
|
|
</script>
|
|
|
|
<div>
|
|
<h2>{tr.schedulingReviews()}</h2>
|
|
|
|
<EnumSelector
|
|
label={tr.deckConfigSortOrder()}
|
|
tooltip={tr.deckConfigReviewSortOrderTooltip()}
|
|
choices={reviewOrderChoices}
|
|
defaultValue={defaults.reviewOrder}
|
|
bind:value={$config.reviewOrder} />
|
|
|
|
<CheckBox
|
|
label={tr.deckConfigBuryReviewSiblings()}
|
|
tooltip={tr.deckConfigBuryTooltip()}
|
|
defaultValue={defaults.buryReviews}
|
|
bind:value={$config.buryReviews} />
|
|
</div>
|