mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
0ef5fb7f1d
commit
e119a15d1c
1 changed files with 5 additions and 1 deletions
|
|
@ -250,7 +250,11 @@ func setNodeAttrs0(node *ast.Node, nameValues map[string]string) (oldAttrs map[s
|
|||
|
||||
func pushBroadcastAttrTransactions(oldAttrs map[string]string, node *ast.Node) {
|
||||
newAttrs := parse.IAL2Map(node.KramdownIAL)
|
||||
doOp := &Operation{Action: "updateAttrs", Data: map[string]interface{}{"old": oldAttrs, "new": newAttrs}, ID: node.ID}
|
||||
data := map[string]interface{}{"old": oldAttrs, "new": newAttrs}
|
||||
if "" != node.AttributeViewType {
|
||||
data["data-av-type"] = node.AttributeViewType
|
||||
}
|
||||
doOp := &Operation{Action: "updateAttrs", Data: data, ID: node.ID}
|
||||
evt := util.NewCmdResult("transactions", 0, util.PushModeBroadcast)
|
||||
evt.Data = []*Transaction{{
|
||||
DoOperations: []*Operation{doOp},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue