🎨 当自定义排序时支持在文档上/下新建同级文档 https://github.com/siyuan-note/siyuan/issues/5098

This commit is contained in:
Liang Ding 2022-07-01 22:50:11 +08:00
parent b40b460f0c
commit eb7e1b3d1d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 18 additions and 18 deletions

View file

@ -135,7 +135,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
if (!window.siyuan.config.readonly) {
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconFile",
label: window.siyuan.languages.newSubFile,
label: window.siyuan.languages.newSubDoc,
click: () => {
newFile(notebookId, pathString, true);
}
@ -143,7 +143,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
if (window.siyuan.config.fileTree.sort === 6) {
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconBefore",
label: window.siyuan.languages.newFileBefore,
label: window.siyuan.languages.newDocAbove,
click: () => {
const paths: string[] = [];
Array.from(liElement.parentElement.children).forEach((item) => {
@ -159,7 +159,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
}).element);
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconAfter",
label: window.siyuan.languages.newFileAfter,
label: window.siyuan.languages.newDocBelow,
click: () => {
const paths: string[] = [];
Array.from(liElement.parentElement.children).forEach((item) => {