🎨 Support hiding database table view title https://github.com/siyuan-note/siyuan/issues/10478

This commit is contained in:
Daniel 2024-03-01 22:40:56 +08:00
parent 950a148336
commit bbf41e4769
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 40 additions and 33 deletions

View file

@ -306,10 +306,11 @@ func renderSnapshotAttributeView(c *gin.Context) {
var views []map[string]interface{}
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"hideAttrViewName": v.HideAttrViewName,
"type": v.LayoutType,
}
views = append(views, view)
@ -347,10 +348,11 @@ func renderHistoryAttributeView(c *gin.Context) {
var views []map[string]interface{}
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"hideAttrViewName": v.HideAttrViewName,
"type": v.LayoutType,
}
views = append(views, view)
@ -404,10 +406,11 @@ func renderAttributeView(c *gin.Context) {
var views []map[string]interface{}
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"hideAttrViewName": v.HideAttrViewName,
"type": v.LayoutType,
}
views = append(views, view)