summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-04-27 00:54:17 +0800
committerGitHub <noreply@github.com>2023-04-26 12:54:17 -0400
commit8f57aa014b5642bcd33a6b22492df3c63f03d808 (patch)
tree10755b336f7f6150f3bec02ae4de5a581f1ef0fa /web_src
parentdf9a62b5f9fdfd4f8719761c52d09533288a3b3a (diff)
downloadgitea-8f57aa014b5642bcd33a6b22492df3c63f03d808.tar.gz
gitea-8f57aa014b5642bcd33a6b22492df3c63f03d808.zip
Alert error message if open dependencies are included in the issues that try to batch close (#24329)
fix #24185 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/repo-issue-list.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/features/repo-issue-list.js b/web_src/js/features/repo-issue-list.js
index 6c5d1244fd..915cd2e132 100644
--- a/web_src/js/features/repo-issue-list.js
+++ b/web_src/js/features/repo-issue-list.js
@@ -55,6 +55,8 @@ function initRepoIssueListCheckboxes() {
elementId
).then(() => {
window.location.reload();
+ }).catch((reason) => {
+ window.alert(reason.responseJSON.error);
});
});
}