anki/ts/deckoptions/BuryOptions.svelte

40 lines
1.2 KiB
Svelte
Raw Normal View History

<!--
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";
2021-05-27 23:19:05 +02:00
import TitledContainer from "./TitledContainer.svelte";
import Item from "components/Item.svelte";
2021-05-29 17:32:12 +02:00
import CheckBoxRow from "./CheckBoxRow.svelte";
import type { DeckOptionsState } from "./lib";
export let state: DeckOptionsState;
2021-05-29 17:32:12 +02:00
export let api: Record<string, never>;
let config = state.currentConfig;
let defaults = state.defaults;
</script>
2021-05-29 17:32:12 +02:00
<TitledContainer title={tr.deckConfigBuryTitle()} {api}>
<Item>
<CheckBoxRow
bind:value={$config.buryNew}
defaultValue={defaults.buryNew}
markdownTooltip={tr.deckConfigBuryTitle()}
>
{tr.deckConfigBuryNewSiblings()}
</CheckBoxRow>
</Item>
<Item>
<CheckBoxRow
bind:value={$config.buryReviews}
defaultValue={defaults.buryReviews}
markdownTooltip={tr.deckConfigBuryTooltip()}
>
{tr.deckConfigBuryReviewSiblings()}
</CheckBoxRow>
</Item>
2021-05-27 23:19:05 +02:00
</TitledContainer>