mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Block data sync to Attribute View https://github.com/siyuan-note/siyuan/issues/8696
This commit is contained in:
parent
060d933390
commit
33e6a2ff2c
2 changed files with 12 additions and 1 deletions
|
|
@ -107,7 +107,8 @@ type AttributeViewCalc struct {
|
|||
type CalcOperator string
|
||||
|
||||
const (
|
||||
CalcOperatorIsEqual FilterOperator = "="
|
||||
CalcOperatorNone FilterOperator = ""
|
||||
CalcOperatorCountAll FilterOperator = "Count all"
|
||||
)
|
||||
|
||||
type AttributeViewSort struct {
|
||||
|
|
@ -312,3 +313,7 @@ func (av *AttributeView) FilterRows() {
|
|||
av.Rows = rows
|
||||
}
|
||||
}
|
||||
|
||||
func (av *AttributeView) CalcCols() {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1221,6 +1221,12 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
|
|||
}
|
||||
if changedAv {
|
||||
av.SaveAttributeView(attrView)
|
||||
|
||||
evt := util.NewCmdResult("refreshAttributeView", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"id": avID,
|
||||
}
|
||||
util.PushEvent(evt)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue