mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user