diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-19 15:46:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 15:46:50 +0800 |
commit | a1c5057fe81c25dfd1777e9625eb5480c45897ea (patch) | |
tree | 5e25321082e6f3e5b5255132af825cb0b3a3248e /modules/context | |
parent | 51c2aebe1f5124f1a93f7ccd082792c26e6da291 (diff) | |
download | gitea-a1c5057fe81c25dfd1777e9625eb5480c45897ea.tar.gz gitea-a1c5057fe81c25dfd1777e9625eb5480c45897ea.zip |
Batch delete issue and improve tippy opts (#25253)
1. Add "batch delete" button for selected issues, close #22273
2. Address the review in
https://github.com/go-gitea/gitea/pull/25219#discussion_r1229266083
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/base.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/context/base.go b/modules/context/base.go index 45f33feb08..839f3e10df 100644 --- a/modules/context/base.go +++ b/modules/context/base.go @@ -140,6 +140,10 @@ func (b *Base) JSONRedirect(redirect string) { b.JSON(http.StatusOK, map[string]any{"redirect": redirect}) } +func (b *Base) JSONOK() { + b.JSON(http.StatusOK, map[string]any{"ok": true}) // this is only a dummy response, frontend seldom uses it +} + func (b *Base) JSONError(msg string) { b.JSON(http.StatusBadRequest, map[string]any{"errorMessage": msg}) } |