mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 当自定义排序时支持在文档上/下新建同级文档 https://github.com/siyuan-note/siyuan/issues/5098
This commit is contained in:
parent
b40b460f0c
commit
eb7e1b3d1d
6 changed files with 18 additions and 18 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue