mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 22:14:06 +01:00
🎨 Better display of attribute view fields in block attribute panel https://github.com/siyuan-note/siyuan/issues/8765
This commit is contained in:
parent
53c9036738
commit
14c270c238
3 changed files with 71 additions and 0 deletions
|
|
@ -62,3 +62,17 @@ func renderAttributeView(c *gin.Context) {
|
|||
"view": view,
|
||||
}
|
||||
}
|
||||
|
||||
func getAttributeViewKeys(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
blockAttributeViewKeys := model.GetBlockAttributeViewKeys(id)
|
||||
ret.Data = blockAttributeViewKeys
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue