mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -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]}
|
{$remaining[2]}
|
||||||
</RemainingNumber>
|
</RemainingNumber>
|
||||||
</span>
|
</span>
|
||||||
<button on:click={() => bridgeCommand("ans")}>
|
<button on:click={() => state.showAnswer()}>
|
||||||
{tr.studyingShowAnswer()}
|
{tr.studyingShowAnswer()}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ export class ReviewerState {
|
||||||
answer: answer || undefined,
|
answer: answer || undefined,
|
||||||
});
|
});
|
||||||
// TODO: "Congratulation screen" logic
|
// TODO: "Congratulation screen" logic
|
||||||
|
this.cardData = resp.nextCard
|
||||||
const question = resp.nextCard?.front || "";
|
const question = resp.nextCard?.front || "";
|
||||||
this.updateHtml(question);
|
this.updateHtml(question);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue