mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
5ecc2a862e
commit
d1a2140cd9
12 changed files with 78 additions and 20 deletions
|
|
@ -793,16 +793,6 @@ export const openMenu = (src: string, onlyMenu = false) => {
|
|||
}).element);
|
||||
};
|
||||
|
||||
export const newFileMenu = (notebookId?: string, path?: string, open?: boolean) => {
|
||||
return new MenuItem({
|
||||
icon: "iconFile",
|
||||
label: window.siyuan.languages.newFile,
|
||||
click: () => {
|
||||
newFile(notebookId, path, open);
|
||||
}
|
||||
}).element;
|
||||
};
|
||||
|
||||
export const deleteMenu = (notebookId: string, name: string, pathString: string) => {
|
||||
return new MenuItem({
|
||||
icon: "iconTrashcan",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue