mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
f69cad6349
commit
e9411f9677
2 changed files with 10 additions and 3 deletions
|
|
@ -43,7 +43,14 @@ func getTag(c *gin.Context) {
|
|||
model.Conf.Tag.Sort = sortMode
|
||||
model.Conf.Save()
|
||||
|
||||
ret.Data = model.BuildTags()
|
||||
// API `getTag` add an optional parameter `ignoreMaxListHint` https://github.com/siyuan-note/siyuan/issues/16000
|
||||
ignoreMaxListHint := false
|
||||
ignoreMaxListHintArg := arg["ignoreMaxListHint"]
|
||||
if nil != ignoreMaxListHintArg {
|
||||
ignoreMaxListHint = ignoreMaxListHintArg.(bool)
|
||||
}
|
||||
|
||||
ret.Data = model.BuildTags(ignoreMaxListHint)
|
||||
}
|
||||
|
||||
func renameTag(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue