mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
8c4d00ed12
commit
c8680c9fb3
9 changed files with 69 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue