mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Change placeholder to text
This commit is contained in:
parent
b4308120f4
commit
82de2078f5
4 changed files with 6 additions and 9 deletions
|
|
@ -383,6 +383,9 @@ deck-config-which-deck = Which deck would you like to display options for?
|
|||
|
||||
deck-config-updating-cards = Updating cards: { $current_cards_count }/{ $total_cards_count }...
|
||||
deck-config-invalid-parameters = The provided FSRS parameters are invalid. Leave them blank to use the default values.
|
||||
deck-config-placeholder-parameters =
|
||||
Default parameters
|
||||
(Press "{deck-config-optimize-button}" periodicaly to allow fsrs to better adjust to your memory)
|
||||
deck-config-manual-parameter-edit-warning = The parameters should only be modified using the optimize button. Manually editing them is heavily advised against.
|
||||
deck-config-not-enough-history = Insufficient review history to perform this operation.
|
||||
deck-config-must-have-400-reviews =
|
||||
|
|
|
|||
|
|
@ -387,11 +387,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
<Warning warning={desiredRetentionWarning} className={retentionWarningClass} />
|
||||
|
||||
<div class="ms-1 me-1">
|
||||
<ParamsInputRow
|
||||
bind:value={$config.fsrsParams6}
|
||||
defaultValue={[]}
|
||||
defaults={defaults.fsrsParams6}
|
||||
>
|
||||
<ParamsInputRow bind:value={$config.fsrsParams6} defaultValue={[]}>
|
||||
<SettingTitle on:click={() => openHelpModal("modelParams")}>
|
||||
{tr.deckConfigWeights()}
|
||||
</SettingTitle>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
import * as tr from "@generated/ftl";
|
||||
|
||||
export let value: number[];
|
||||
export let defaults: number[];
|
||||
|
||||
let stringValue: string;
|
||||
let taRef: HTMLTextAreaElement;
|
||||
|
|
@ -64,7 +63,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
value={stringValue}
|
||||
on:blur={update}
|
||||
class="w-100"
|
||||
placeholder={render(defaults)}
|
||||
placeholder={tr.deckConfigPlaceholderParameters()}
|
||||
readonly={clickCount < UNLOCK_EDIT_COUNT}
|
||||
on:click={onClick}
|
||||
></textarea>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,10 @@
|
|||
|
||||
export let value: number[];
|
||||
export let defaultValue: number[];
|
||||
export let defaults: number[];
|
||||
</script>
|
||||
|
||||
<slot />
|
||||
<ConfigInput>
|
||||
<ParamsInput bind:value {defaults} />
|
||||
<ParamsInput bind:value />
|
||||
<RevertButton slot="revert" bind:value {defaultValue} />
|
||||
</ConfigInput>
|
||||
|
|
|
|||
Loading…
Reference in a new issue