🎨 Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448

This commit is contained in:
Daniel 2023-06-04 20:36:38 +08:00
parent 5c641120ae
commit 16f116cfd2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1,10 +1,4 @@
import {
copySubMenu,
exportMd,
movePathToMenu,
openFileAttr,
renameMenu,
} from "./commonMenuItem";
import {copySubMenu, exportMd, movePathToMenu, openFileAttr, renameMenu,} from "./commonMenuItem";
/// #if !BROWSER
import {FileFilter, shell} from "electron";
import {dialog as remoteDialog} from "@electron/remote";
@ -543,7 +537,7 @@ export const initFileMenu = (app: App, notebookId: string, pathString: string, l
/// #endif
if (!window.siyuan.config.readonly) {
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.dataHistory,
label: window.siyuan.languages.fileHistory,
icon: "iconHistory",
click() {
openDocHistory({app, id, notebookId, pathString: name});