From 3d6a0f46191377f676cab96c376330d1d801d262 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 9 May 2023 10:45:12 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8202 --- app/src/util/pathName.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index 1513b15bd..2dc074261 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -225,7 +225,8 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, }) => { let countHTML = ""; if (flashcard) { - countHTML = `${item.newFlashcardCount} + countHTML = ` +${item.newFlashcardCount} ${item.dueFlashcardCount} ${item.flashcardCount}`; } @@ -450,6 +451,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, currentItemElements[0].classList.remove("b3-list-item--focus"); target.classList.add("b3-list-item--focus"); } + if (target.getAttribute("data-path") === "/") { + getLeaf(target, flashcard); + } event.preventDefault(); event.stopPropagation(); break;