This commit is contained in:
Vanessa 2022-11-03 11:12:23 +08:00
parent 8c4d00ed12
commit c8680c9fb3
9 changed files with 69 additions and 41 deletions

View file

@ -778,17 +778,6 @@ export const openMenu = (src: string, onlyMenu: boolean, showAccelerator: boolea
}).element);
};
export const deleteMenu = (notebookId: string, name: string, pathString: string) => {
return new MenuItem({
icon: "iconTrashcan",
label: window.siyuan.languages.delete,
accelerator: "⌦",
click: () => {
deleteFile(notebookId, pathString, name);
}
}).element;
};
export const renameMenu = (options: {
path: string
notebookId: string