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">
|
|
|
|
import * as tr from "lib/i18n";
|
2021-05-28 01:41:53 +02:00
|
|
|
import marked from "marked";
|
2021-05-27 23:19:05 +02:00
|
|
|
import TitledContainer from "./TitledContainer.svelte";
|
2021-05-29 00:33:59 +02:00
|
|
|
import ConfigEntry from "./ConfigEntry.svelte";
|
2021-05-28 01:41:53 +02:00
|
|
|
import HelpPopup from "./HelpPopup.svelte";
|
2021-05-24 10:25:17 +02:00
|
|
|
import CheckBox from "./CheckBox.svelte";
|
2021-05-28 23:59:20 +02:00
|
|
|
import RevertButton from "./RevertButton.svelte";
|
2021-05-24 10:25:17 +02:00
|
|
|
import type { DeckOptionsState } from "./lib";
|
|
|
|
|
|
|
|
export let state: DeckOptionsState;
|
|
|
|
let config = state.currentConfig;
|
|
|
|
let defaults = state.defaults;
|
|
|
|
</script>
|
|
|
|
|
2021-05-27 23:19:05 +02:00
|
|
|
<TitledContainer title={tr.deckConfigBuryTitle()}>
|
2021-05-29 00:33:59 +02:00
|
|
|
<ConfigEntry>
|
|
|
|
<svelte:fragment slot="left">
|
|
|
|
<CheckBox bind:value={$config.buryNew}>
|
|
|
|
{tr.deckConfigBuryNewSiblings()}
|
|
|
|
<HelpPopup html={marked(tr.deckConfigBuryTooltip())} />
|
|
|
|
</CheckBox>
|
|
|
|
</svelte:fragment>
|
|
|
|
<svelte:fragment slot="right">
|
|
|
|
<RevertButton
|
|
|
|
defaultValue={defaults.buryNew}
|
|
|
|
bind:value={$config.buryNew}
|
|
|
|
/>
|
|
|
|
</svelte:fragment>
|
|
|
|
</ConfigEntry>
|
2021-05-24 10:25:17 +02:00
|
|
|
|
2021-05-29 00:33:59 +02:00
|
|
|
<ConfigEntry>
|
|
|
|
<svelte:fragment slot="left">
|
|
|
|
<CheckBox bind:value={$config.buryReviews}>
|
|
|
|
{tr.deckConfigBuryReviewSiblings()}
|
|
|
|
<HelpPopup html={marked(tr.deckConfigBuryTooltip())} />
|
|
|
|
</CheckBox>
|
|
|
|
</svelte:fragment>
|
|
|
|
<svelte:fragment slot="right">
|
|
|
|
<RevertButton
|
|
|
|
defaultValue={defaults.buryReviews}
|
|
|
|
bind:value={$config.buryReviews}
|
|
|
|
/>
|
|
|
|
</svelte:fragment>
|
|
|
|
</ConfigEntry>
|
2021-05-27 23:19:05 +02:00
|
|
|
</TitledContainer>
|