🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751

This commit is contained in:
Daniel 2023-12-01 10:44:10 +08:00
parent 03831ef891
commit 083e9b839b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 7 additions and 1 deletions

View file

@ -48,6 +48,7 @@ func renderSnapshotAttributeView(c *gin.Context) {
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
}
@ -88,6 +89,7 @@ func renderHistoryAttributeView(c *gin.Context) {
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
}
@ -132,6 +134,7 @@ func renderAttributeView(c *gin.Context) {
for _, v := range attrView.Views {
view := map[string]interface{}{
"id": v.ID,
"icon": v.Icon,
"name": v.Name,
"type": v.LayoutType,
}