Vanessa 2022-07-01 22:08:00 +08:00
parent 5ecc2a862e
commit d1a2140cd9
12 changed files with 78 additions and 20 deletions

View file

@ -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",