mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
fix: add back missing dicts for flashcard buttons
This commit is contained in:
@@ -215,16 +215,15 @@
|
||||
(component-block/blocks-container option [block-entity]))
|
||||
[:div.mt-8.pb-2
|
||||
(if (contains? #{:show-cloze :show-answer} next-phase)
|
||||
(btn-with-shortcut {:btn-text (t
|
||||
(case next-phase
|
||||
:show-answer
|
||||
:flashcards/modal-btn-show-answers
|
||||
:show-cloze
|
||||
:flashcards/modal-btn-show-clozes
|
||||
:init
|
||||
:flashcards/modal-btn-hide-answers))
|
||||
(btn-with-shortcut {:btn-text (case next-phase
|
||||
:show-answer
|
||||
(t :flashcards/modal-btn-show-answers)
|
||||
:show-cloze
|
||||
(t :flashcards/modal-btn-show-clozes)
|
||||
:init
|
||||
(t :flashcards/modal-btn-hide-answers))
|
||||
:shortcut "s"
|
||||
:id (str "card-answers")
|
||||
:id "card-answers"
|
||||
:on-click #(swap! *phase
|
||||
(fn [phase]
|
||||
(phase->next-phase block-entity phase)))})
|
||||
|
||||
@@ -247,6 +247,10 @@
|
||||
:flashcards/modal-welcome-title "Time to create a card!"
|
||||
:flashcards/modal-welcome-desc-1 "You can add \"{1}\" to any block to turn it into a card or trigger \"/cloze\" to add some clozes."
|
||||
:flashcards/modal-finished "Congrats, you've reviewed all the cards for this query, see you next time! 💯"
|
||||
:flashcards/modal-btn-show-answers "Show answers"
|
||||
:flashcards/modal-btn-hide-answers "Hide answers"
|
||||
:flashcards/modal-btn-show-clozes "Show clozes"
|
||||
|
||||
:home "Home"
|
||||
:new-page "New page:"
|
||||
:new-tag "New tag:"
|
||||
|
||||
Reference in New Issue
Block a user