mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
9856ffc84a
commit
7e86374d14
2 changed files with 15 additions and 7 deletions
|
|
@ -70,6 +70,10 @@ func changeAttrViewLayout(operation *Operation) (err error) {
|
|||
|
||||
switch newLayout {
|
||||
case av.LayoutTypeTable:
|
||||
if view.Name == av.GetAttributeViewI18n("gallery") {
|
||||
view.Name = av.GetAttributeViewI18n("table")
|
||||
}
|
||||
|
||||
if nil != view.Table {
|
||||
break
|
||||
}
|
||||
|
|
@ -85,6 +89,10 @@ func changeAttrViewLayout(operation *Operation) (err error) {
|
|||
}
|
||||
}
|
||||
case av.LayoutTypeGallery:
|
||||
if view.Name == av.GetAttributeViewI18n("table") {
|
||||
view.Name = av.GetAttributeViewI18n("gallery")
|
||||
}
|
||||
|
||||
if nil != view.Gallery {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue