mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
e03a0d771b
commit
176dd46ef5
2 changed files with 197 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ import {openNewWindowById} from "../window/openNewWindow";
|
|||
import {openCardByData} from "../card/openCard";
|
||||
import {viewCards} from "../card/viewCards";
|
||||
import {App} from "../index";
|
||||
import {openDocHistory} from "../history/doc";
|
||||
|
||||
const initMultiMenu = (selectItemElements: NodeListOf<Element>) => {
|
||||
const fileItemElement = Array.from(selectItemElements).find(item => {
|
||||
|
|
@ -540,6 +541,15 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
|
|||
submenu: openSubmenus,
|
||||
}).element);
|
||||
/// #endif
|
||||
if (!window.siyuan.config.readonly) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.dataHistory,
|
||||
icon: "iconHistory",
|
||||
click() {
|
||||
openDocHistory(app, id);
|
||||
}
|
||||
}).element);
|
||||
}
|
||||
genImportMenu(notebookId, pathString);
|
||||
window.siyuan.menus.menu.append(exportMd(id));
|
||||
return window.siyuan.menus.menu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue