mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 06:46:09 +01:00
This commit is contained in:
parent
0c6c90a82d
commit
12ebc120a0
10 changed files with 184 additions and 119 deletions
|
|
@ -607,11 +607,15 @@ export const bindCardEvent = async (options: {
|
|||
iconHTML: "",
|
||||
label: window.siyuan.languages.fileTree,
|
||||
click() {
|
||||
movePathTo((toPath, toNotebook) => {
|
||||
filterElement.setAttribute("data-id", toPath[0] === "/" ? toNotebook[0] : getDisplayName(toPath[0], true, true));
|
||||
filterElement.setAttribute("data-cardtype", toPath[0] === "/" ? "notebook" : "doc");
|
||||
fetchNewRound();
|
||||
}, [], undefined, window.siyuan.languages.specifyPath, true);
|
||||
movePathTo({
|
||||
cb: (toPath, toNotebook) => {
|
||||
filterElement.setAttribute("data-id", toPath[0] === "/" ? toNotebook[0] : getDisplayName(toPath[0], true, true));
|
||||
filterElement.setAttribute("data-cardtype", toPath[0] === "/" ? "notebook" : "doc");
|
||||
fetchNewRound();
|
||||
},
|
||||
title: window.siyuan.languages.specifyPath,
|
||||
flashcard: true
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
if (options.title || response.data.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue