mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
1063f50375
commit
2dae1200b4
8 changed files with 97 additions and 51 deletions
|
|
@ -257,7 +257,12 @@ export class Files extends Model {
|
|||
const pathString = target.parentElement.getAttribute("data-path");
|
||||
if (!window.siyuan.config.readonly) {
|
||||
if (type === "new") {
|
||||
newFile(options.app, notebookId, pathString);
|
||||
newFile({
|
||||
app: options.app,
|
||||
notebookId,
|
||||
currentPath:pathString,
|
||||
useSavePath: false
|
||||
});
|
||||
} else if (type === "more-root") {
|
||||
initNavigationMenu(options.app, target.parentElement).popup({
|
||||
x: event.clientX,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue