mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 21:08:49 +01:00
🎨 Improve interaction when deleting two-way relation field in a database https://github.com/siyuan-note/siyuan/issues/11252
This commit is contained in:
parent
ca330e2557
commit
88e321b2d0
3 changed files with 42 additions and 37 deletions
|
|
@ -277,8 +277,12 @@ func removeAttributeViewKey(c *gin.Context) {
|
|||
|
||||
avID := arg["avID"].(string)
|
||||
keyID := arg["keyID"].(string)
|
||||
removeRelationDest := false
|
||||
if nil != arg["removeRelationDest"] {
|
||||
removeRelationDest = arg["removeRelationDest"].(bool)
|
||||
}
|
||||
|
||||
err := model.RemoveAttributeViewKey(avID, keyID)
|
||||
err := model.RemoveAttributeViewKey(avID, keyID, removeRelationDest)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue