mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-01 13:11:48 +01:00
🎨 Identify the database view whether is a "mirror" https://github.com/siyuan-note/siyuan/issues/9578
This commit is contained in:
parent
d5dfb2a732
commit
960cf3fe04
2 changed files with 27 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/siyuan-note/siyuan/kernel/av"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
|
@ -60,6 +61,7 @@ func renderAttributeView(c *gin.Context) {
|
|||
"viewID": view.GetID(),
|
||||
"views": views,
|
||||
"view": view,
|
||||
"isMirror": av.IsMirror(attrView.ID),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue