mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Added: edit button
This commit is contained in:
parent
7788aa7785
commit
5d536f2f8e
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
import type { Writable } from "svelte/store";
|
import type { Writable } from "svelte/store";
|
||||||
import AnswerButton from "./AnswerButton.svelte";
|
import AnswerButton from "./AnswerButton.svelte";
|
||||||
import { bridgeCommand } from "@tslib/bridgecommand";
|
import { bridgeCommand } from "@tslib/bridgecommand";
|
||||||
|
import * as tr from "@generated/ftl"
|
||||||
|
|
||||||
export let answerButtons: Writable<AnswerButtonInfo[]>
|
export let answerButtons: Writable<AnswerButtonInfo[]>
|
||||||
$: console.log($answerButtons)
|
$: console.log($answerButtons)
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
<div id="outer fancy">
|
<div id="outer fancy">
|
||||||
<div id="tableinner">
|
<div id="tableinner">
|
||||||
<div>
|
<div>
|
||||||
<button>Edit</button>
|
<button title={tr.actionsShortcutKey({val: "E"})} on:click={()=>bridgeCommand("edit")}>{tr.studyingEdit()}</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{#if $answerButtons.length}
|
{#if $answerButtons.length}
|
||||||
|
|
Loading…
Reference in a new issue