mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Disable Dr in workload mode
This commit is contained in:
parent
d8fcd787c8
commit
cec2f0c44e
1 changed files with 37 additions and 12 deletions
|
@ -43,6 +43,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
import Warning from "./Warning.svelte";
|
||||
import type { ComputeRetentionProgress } from "@generated/anki/collection_pb";
|
||||
import Modal from "bootstrap/js/dist/modal";
|
||||
import Row from "$lib/components/Row.svelte";
|
||||
import Col from "$lib/components/Col.svelte";
|
||||
|
||||
export let state: DeckOptionsState;
|
||||
export let simulateFsrsRequest: SimulateFsrsReviewRequest;
|
||||
|
@ -243,7 +245,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
$config.newPerDay = simulateFsrsRequest.newLimit;
|
||||
$config.reviewsPerDay = simulateFsrsRequest.reviewLimit;
|
||||
$config.maximumReviewInterval = simulateFsrsRequest.maxInterval;
|
||||
if (!workload) {
|
||||
$config.desiredRetention = simulateFsrsRequest.desiredRetention;
|
||||
}
|
||||
$newCardsIgnoreReviewLimit = simulateFsrsRequest.newCardsIgnoreReviewLimit;
|
||||
$config.reviewOrder = simulateFsrsRequest.reviewOrder;
|
||||
$config.leechAction = suspendLeeches
|
||||
|
@ -353,6 +357,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
</SettingTitle>
|
||||
</SpinBoxRow>
|
||||
|
||||
{#if !workload}
|
||||
<SpinBoxFloatRow
|
||||
bind:value={simulateFsrsRequest.desiredRetention}
|
||||
defaultValue={$config.desiredRetention}
|
||||
|
@ -360,10 +365,30 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
max={0.99}
|
||||
percentage={true}
|
||||
>
|
||||
<SettingTitle on:click={() => openHelpModal("desiredRetention")}>
|
||||
<SettingTitle
|
||||
on:click={() => openHelpModal("desiredRetention")}
|
||||
>
|
||||
{tr.deckConfigDesiredRetention()}
|
||||
</SettingTitle>
|
||||
</SpinBoxFloatRow>
|
||||
{:else}
|
||||
<Row --cols={13}>
|
||||
<Col --col-size={7} breakpoint="xs">
|
||||
<SettingTitle
|
||||
on:click={() => openHelpModal("desiredRetention")}
|
||||
>
|
||||
{tr.deckConfigDesiredRetention()}
|
||||
</SettingTitle>
|
||||
</Col>
|
||||
<Col --col-size={6} breakpoint="xs">
|
||||
<input
|
||||
type="text"
|
||||
disabled
|
||||
value="(Plotted on the X axis)"
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
{/if}
|
||||
|
||||
<SpinBoxRow
|
||||
bind:value={simulateFsrsRequest.newLimit}
|
||||
|
|
Loading…
Reference in a new issue