mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 14:22:04 +08:00
🎨 The database supports adding view/field/option description https://github.com/siyuan-note/siyuan/issues/11053
This commit is contained in:
parent
43dcd76808
commit
ad66a70b55
@ -3464,6 +3464,7 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {
|
|||||||
oldName := data["oldName"].(string)
|
oldName := data["oldName"].(string)
|
||||||
newName := data["newName"].(string)
|
newName := data["newName"].(string)
|
||||||
newColor := data["newColor"].(string)
|
newColor := data["newColor"].(string)
|
||||||
|
newDesc := data["newDesc"].(string)
|
||||||
|
|
||||||
found := false
|
found := false
|
||||||
if oldName != newName {
|
if oldName != newName {
|
||||||
@ -3471,6 +3472,7 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {
|
|||||||
if newName == opt.Name { // 如果选项已经存在则直接使用
|
if newName == opt.Name { // 如果选项已经存在则直接使用
|
||||||
found = true
|
found = true
|
||||||
newColor = opt.Color
|
newColor = opt.Color
|
||||||
|
newDesc = opt.Desc
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3481,6 +3483,7 @@ func updateAttributeViewColumnOption(operation *Operation) (err error) {
|
|||||||
if oldName == opt.Name {
|
if oldName == opt.Name {
|
||||||
key.Options[i].Name = newName
|
key.Options[i].Name = newName
|
||||||
key.Options[i].Color = newColor
|
key.Options[i].Color = newColor
|
||||||
|
key.Options[i].Desc = newDesc
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user