🐛 Fix multiple docs convert to headings https://github.com/siyuan-note/siyuan/issues/13225
This commit is contained in:
parent
75b973d44c
commit
d9155c27b6
13 changed files with 6 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Es kann jeweils nur ein Dokument konvertiert werden",
|
||||
"empty": "Leer",
|
||||
"newRowInRelation": "Erstellen Sie einen neuen Eintrag in ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Primärschlüsseltext kopieren",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Only one document can be converted at a time",
|
||||
"empty": "Empty",
|
||||
"newRowInRelation": "Create a new entry in ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Copy primary key text",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Solo se puede convertir un documento a la vez",
|
||||
"empty": "Vacío",
|
||||
"newRowInRelation": "Crear una nueva entrada en ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Copiar texto de la clave principal",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Vous ne pouvez convertir qu'un seul document à la fois",
|
||||
"empty": "Vide",
|
||||
"newRowInRelation": "Créer une nouvelle entrée dans ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Copier le texte de la clé principale",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "ניתן להמיר רק מסמך אחד בכל פעם",
|
||||
"empty": "ריק",
|
||||
"newRowInRelation": "צור ערך חדש ב-${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "העתק טקסט מפתח ראשי",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "È possibile convertire solo un documento alla volta",
|
||||
"empty": "Vuoto",
|
||||
"newRowInRelation": "Crea una nuova voce in ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Copia il testo della chiave primaria",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "一度に変換できるドキュメントは1つだけです",
|
||||
"empty": "空白",
|
||||
"newRowInRelation": "${x} に新しい項目を作成 <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "主キーのテキストをコピー",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Można konwertować tylko jeden dokument na raz",
|
||||
"empty": "Pusty",
|
||||
"newRowInRelation": "Utwórz nowy wpis w ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Skopiuj tekst klucza głównego",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "Можно конвертировать только один документ за раз",
|
||||
"empty": "Пусто",
|
||||
"newRowInRelation": "Создать новую запись в ${x} <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "Скопировать текст основного ключа",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "每次只能轉換一個文檔",
|
||||
"empty": "空白",
|
||||
"newRowInRelation": "在 ${x} 中新建條目 <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "複製主鍵文本",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"onlyOneDocConvert": "每次只能转换一个文档",
|
||||
"empty": "空白",
|
||||
"newRowInRelation": "在 ${x} 中新建条目 <b class='ft__on-surface'>${y}</b>",
|
||||
"copyKeyContent": "复制主键文本",
|
||||
|
|
|
@ -122,6 +122,8 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|||
return
|
||||
}
|
||||
|
||||
FlushTxQueue()
|
||||
|
||||
srcTree, _ := LoadTreeByBlockID(srcID)
|
||||
if nil == srcTree {
|
||||
err = ErrBlockNotFound
|
||||
|
@ -274,6 +276,8 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|||
}
|
||||
|
||||
func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (srcRootBlockID, newTargetPath string, err error) {
|
||||
FlushTxQueue()
|
||||
|
||||
srcTree, _ := LoadTreeByBlockID(srcHeadingID)
|
||||
if nil == srcTree {
|
||||
err = ErrBlockNotFound
|
||||
|
|
|
@ -28,6 +28,8 @@ import (
|
|||
)
|
||||
|
||||
func ListItem2Doc(srcListItemID, targetBoxID, targetPath, previousPath string) (srcRootBlockID, newTargetPath string, err error) {
|
||||
FlushTxQueue()
|
||||
|
||||
srcTree, _ := LoadTreeByBlockID(srcListItemID)
|
||||
if nil == srcTree {
|
||||
err = ErrBlockNotFound
|
||||
|
|
Loading…
Add table
Reference in a new issue