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
53f0467f73
commit
9f3cd7ca95
7 changed files with 31 additions and 8 deletions
|
|
@ -1075,7 +1075,11 @@ func listDocsByPath(c *gin.Context) {
|
|||
// API `listDocsByPath` add an optional parameter `ignoreMaxListHint` https://github.com/siyuan-note/siyuan/issues/10290
|
||||
ignoreMaxListHintArg := arg["ignoreMaxListHint"]
|
||||
if nil == ignoreMaxListHintArg || !ignoreMaxListHintArg.(bool) {
|
||||
util.PushMsg(fmt.Sprintf(model.Conf.Language(48), len(files)), 7000)
|
||||
var app string
|
||||
if nil != arg["app"] {
|
||||
app = arg["app"].(string)
|
||||
}
|
||||
util.PushMsgWithApp(app, fmt.Sprintf(model.Conf.Language(48), len(files)), 7000)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ func getTag(c *gin.Context) {
|
|||
ignoreMaxListHint = ignoreMaxListHintArg.(bool)
|
||||
}
|
||||
|
||||
ret.Data = model.BuildTags(ignoreMaxListHint)
|
||||
app := arg["app"].(string)
|
||||
ret.Data = model.BuildTags(ignoreMaxListHint, app)
|
||||
}
|
||||
|
||||
func renameTag(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue