aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content.tmpl
diff options
context:
space:
mode:
authorKemal Zebari <60799661+kemzeb@users.noreply.github.com>2024-06-23 11:41:01 -0700
committerGitHub <noreply@github.com>2024-06-23 18:41:01 +0000
commit0c4ff0110912b0b99ee78911645b9f880e289ad9 (patch)
treed7d3a6a28ef7dfe776b984d706ed397dd3f9c93e /templates/repo/issue/view_content.tmpl
parentf4921b9daaf7c735da2833542fad426ca28bb09d (diff)
downloadgitea-0c4ff0110912b0b99ee78911645b9f880e289ad9.tar.gz
gitea-0c4ff0110912b0b99ee78911645b9f880e289ad9.zip
Disable issue/PR comment button given empty input (#31463)
Given an empty issue/PR comment, the comment history would not be updated if the user were to submit it. Therefore, it would make since to just disable the comment button when the text editor is empty. This is inline with what GitHub does when given empty text editor input. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r--templates/repo/issue/view_content.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 3088c60510..e4213b8fcd 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -106,7 +106,7 @@
</button>
{{end}}
{{end}}
- <button class="ui primary button">
+ <button id="comment-button" class="ui primary button">
{{ctx.Locale.Tr "repo.issues.create_comment"}}
</button>
</div>