mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
29 lines
985 B
Svelte
29 lines
985 B
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 TitledContainer from "./TitledContainer.svelte";
|
|
import CheckBox from "./CheckBox.svelte";
|
|
import type { DeckOptionsState } from "./lib";
|
|
|
|
export let state: DeckOptionsState;
|
|
let config = state.currentConfig;
|
|
let defaults = state.defaults;
|
|
</script>
|
|
|
|
<TitledContainer title={tr.deckConfigAudioTitle()}>
|
|
<CheckBox
|
|
label={tr.deckConfigDisableAutoplay()}
|
|
defaultValue={defaults.disableAutoplay}
|
|
bind:value={$config.disableAutoplay}
|
|
/>
|
|
|
|
<CheckBox
|
|
label={tr.schedulingAlwaysIncludeQuestionSideWhenReplaying()}
|
|
tooltip={tr.deckConfigAlwaysIncludeQuestionAudioTooltip()}
|
|
defaultValue={defaults.skipQuestionWhenReplayingAnswer}
|
|
bind:value={$config.skipQuestionWhenReplayingAnswer}
|
|
/>
|
|
</TitledContainer>
|