This commit is contained in:
Daniel 2025-06-11 16:03:37 +08:00
parent 9856ffc84a
commit 7e86374d14
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 15 additions and 7 deletions

View file

@ -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
}