diff options
author | Zettat123 <zettat123@gmail.com> | 2023-02-21 16:25:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 16:25:47 +0800 |
commit | 7f790c70b9b178741e2ecbe971a6493b5eb423b2 (patch) | |
tree | 1b12afd1ba227b05af259ef2f987baefaf5bfc20 /go.sum | |
parent | e7be610d5773e69abbfb98d19e23112dfad6dfcc (diff) | |
download | gitea-7f790c70b9b178741e2ecbe971a6493b5eb423b2.tar.gz gitea-7f790c70b9b178741e2ecbe971a6493b5eb423b2.zip |
Remove delete button for review comment (#23036)
Fix #23031.
Currently, only comments with type `CommentTypeComment` or
`CommentTypeCode` can be deleted. If user create a review comment, the
type of the comment will be `CommentTypeReview` so the comment cannot be
deleted.
https://github.com/go-gitea/gitea/blob/e7be610d5773e69abbfb98d19e23112dfad6dfcc/routers/web/repo/issue.go#L2860-L2868
And in Github, user also cannot delete a review comment. There isn't a
delete button in the menu.
<img
src="https://user-images.githubusercontent.com/15528715/220275166-5ae2dc10-4003-4857-b14e-d7b02644345f.png"
width="640px" />
So we should remove the delete button from the menu when the comment's
type is `CommentTypeReview`.
Diffstat (limited to 'go.sum')
0 files changed, 0 insertions, 0 deletions