(card) add repetition card in database

This commit is contained in:
2021-06-27 20:11:57 +02:00
parent 5e6efd1ba3
commit 17178bbe63
5 changed files with 65 additions and 16 deletions

View File

@@ -6,7 +6,10 @@
:repo="repo"
:with-content="false"
>
<flip-card v-if="firstCard" :card="firstCard" />
<section v-if="firstCard">
<h3 class="subtitle is-3">Level: {{ firstCard.repetition.level }}</h3>
<flip-card :card="firstCard.card" />
</section>
<section v-else>No cards to review!</section>
</flux-note>
</div>
@@ -31,8 +34,8 @@ export default defineComponent({
setup() {
const { cards } = useSpacedRepetitionCards()
const firstCard = computed(() => {
const [firstCard] = cards.value
return firstCard
const [repetitionCard] = cards.value
return repetitionCard
})
return {