mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Added: ShowAnswer
This commit is contained in:
parent
cadf59f8d6
commit
85ebdefec0
2 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
{$remaining[2]}
|
||||
</RemainingNumber>
|
||||
</span>
|
||||
<button on:click={() => bridgeCommand("ans")}>
|
||||
<button on:click={() => state.showAnswer()}>
|
||||
{tr.studyingShowAnswer()}
|
||||
</button>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ export class ReviewerState {
|
|||
answer: answer || undefined,
|
||||
});
|
||||
// TODO: "Congratulation screen" logic
|
||||
this.cardData = resp.nextCard
|
||||
const question = resp.nextCard?.front || "";
|
||||
this.updateHtml(question);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue