2021-05-24 10:25:17 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2022-02-03 05:52:11 +01:00
|
|
|
import DynamicallySlottable from "../components/DynamicallySlottable.svelte";
|
|
|
|
import Item from "../components/Item.svelte";
|
2022-02-04 09:36:34 +01:00
|
|
|
import * as tr from "../lib/ftl";
|
|
|
|
import type { DeckOptionsState } from "./lib";
|
|
|
|
import SwitchRow from "./SwitchRow.svelte";
|
|
|
|
import TitledContainer from "./TitledContainer.svelte";
|
2021-05-24 10:25:17 +02:00
|
|
|
|
|
|
|
export let state: DeckOptionsState;
|
2021-05-29 17:32:12 +02:00
|
|
|
export let api: Record<string, never>;
|
|
|
|
|
2022-02-04 09:36:34 +01:00
|
|
|
const config = state.currentConfig;
|
|
|
|
const defaults = state.defaults;
|
2021-05-24 10:25:17 +02:00
|
|
|
</script>
|
|
|
|
|
2022-02-03 05:52:11 +01:00
|
|
|
<TitledContainer title={tr.deckConfigBuryTitle()}>
|
|
|
|
<DynamicallySlottable slotHost={Item} {api}>
|
|
|
|
<Item>
|
|
|
|
<SwitchRow
|
|
|
|
bind:value={$config.buryNew}
|
|
|
|
defaultValue={defaults.buryNew}
|
|
|
|
markdownTooltip={tr.deckConfigBuryTooltip()}
|
|
|
|
>
|
|
|
|
{tr.deckConfigBuryNewSiblings()}
|
|
|
|
</SwitchRow>
|
|
|
|
</Item>
|
2021-05-24 10:25:17 +02:00
|
|
|
|
2022-02-03 05:52:11 +01:00
|
|
|
<Item>
|
|
|
|
<SwitchRow
|
|
|
|
bind:value={$config.buryReviews}
|
|
|
|
defaultValue={defaults.buryReviews}
|
|
|
|
markdownTooltip={tr.deckConfigBuryTooltip()}
|
|
|
|
>
|
|
|
|
{tr.deckConfigBuryReviewSiblings()}
|
|
|
|
</SwitchRow>
|
|
|
|
</Item>
|
2022-02-22 12:37:59 +01:00
|
|
|
|
2022-02-23 05:33:52 +01:00
|
|
|
{#if state.v3Scheduler}
|
|
|
|
<Item>
|
|
|
|
<SwitchRow
|
|
|
|
bind:value={$config.buryInterdayLearning}
|
|
|
|
defaultValue={defaults.buryInterdayLearning}
|
|
|
|
markdownTooltip={tr.deckConfigBuryTooltip()}
|
|
|
|
>
|
|
|
|
{tr.deckConfigBuryInterdayLearningSiblings()}
|
|
|
|
</SwitchRow>
|
|
|
|
</Item>
|
|
|
|
{/if}
|
2022-02-03 05:52:11 +01:00
|
|
|
</DynamicallySlottable>
|
2021-05-27 23:19:05 +02:00
|
|
|
</TitledContainer>
|