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;