mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 01:36:09 +01:00
🎨 Refresh the data in the interface after moving the document https://github.com/siyuan-note/siyuan/issues/15762
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
d5e7b27a11
commit
ee4ddf89c1
6 changed files with 39 additions and 23 deletions
|
|
@ -933,7 +933,7 @@ func writeTreeUpsertQueue(tree *parse.Tree) (err error) {
|
|||
return
|
||||
}
|
||||
sql.UpsertTreeQueue(tree)
|
||||
refreshDocInfo(tree, size)
|
||||
refreshDocInfoWithSize(tree, size)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -959,7 +959,7 @@ func renameWriteJSONQueue(tree *parse.Tree) (err error) {
|
|||
}
|
||||
sql.RenameTreeQueue(tree)
|
||||
treenode.UpsertBlockTree(tree)
|
||||
refreshDocInfo(tree, size)
|
||||
refreshDocInfoWithSize(tree, size)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -1371,6 +1371,8 @@ func moveDoc(fromBox *Box, fromPath string, toBox *Box, toPath string, luteEngin
|
|||
return
|
||||
}
|
||||
|
||||
fromParentTree := loadParentTree(tree)
|
||||
|
||||
moveToRoot := "/" == toPath
|
||||
toBlockID := tree.ID
|
||||
fromFolder := path.Join(path.Dir(fromPath), tree.ID)
|
||||
|
|
@ -1489,6 +1491,8 @@ func moveDoc(fromBox *Box, fromPath string, toBox *Box, toPath string, luteEngin
|
|||
}
|
||||
evt.Callback = callback
|
||||
util.PushEvent(evt)
|
||||
|
||||
refreshDocInfo(fromParentTree)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue