mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 17:58:50 +01:00
🧑💻 Add an internal kernel API /api/av/reloadAttributeView https://github.com/siyuan-note/siyuan/issues/14491
Add an internal kernel API `/api/editor/reloadProtyle` https://github.com/siyuan-note/siyuan/issues/14492
This commit is contained in:
parent
78d86629c8
commit
31312bd7c0
7 changed files with 60 additions and 19 deletions
|
|
@ -337,7 +337,7 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
refreshProtyle(rootID)
|
||||
ReloadProtyle(rootID)
|
||||
|
||||
// 刷新页签名
|
||||
refText := getNodeRefText(tree.Root)
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ func refreshDocInfo0(tree *parse.Tree, size uint64) {
|
|||
task.AppendAsyncTaskWithDelay(task.ReloadProtyle, 500*time.Millisecond, util.PushReloadDocInfo, docInfo)
|
||||
}
|
||||
|
||||
func refreshProtyle(rootID string) {
|
||||
func ReloadProtyle(rootID string) {
|
||||
// 刷新关联的引用
|
||||
defTree, _ := LoadTreeByBlockID(rootID)
|
||||
if nil != defTree {
|
||||
|
|
|
|||
|
|
@ -916,7 +916,7 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
|
||||
reloadTreeIDs = gulu.Str.RemoveDuplicatedElem(reloadTreeIDs)
|
||||
for _, id := range reloadTreeIDs {
|
||||
refreshProtyle(id)
|
||||
ReloadProtyle(id)
|
||||
}
|
||||
|
||||
updateAttributeViewBlockText(updateNodes)
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ func RemoveTag(label string) (err error) {
|
|||
|
||||
reloadTreeIDs = gulu.Str.RemoveDuplicatedElem(reloadTreeIDs)
|
||||
for _, id := range reloadTreeIDs {
|
||||
refreshProtyle(id)
|
||||
ReloadProtyle(id)
|
||||
}
|
||||
|
||||
updateAttributeViewBlockText(updateNodes)
|
||||
|
|
@ -208,7 +208,7 @@ func RenameTag(oldLabel, newLabel string) (err error) {
|
|||
|
||||
reloadTreeIDs = gulu.Str.RemoveDuplicatedElem(reloadTreeIDs)
|
||||
for _, id := range reloadTreeIDs {
|
||||
refreshProtyle(id)
|
||||
ReloadProtyle(id)
|
||||
}
|
||||
|
||||
updateAttributeViewBlockText(updateNodes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue