summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-02-11 15:41:50 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-11 15:41:50 +0800
commitacff3d52895ffb9d40eb2f359169ef2c03ef9a2c (patch)
tree0a48d0e1736c30a8cbefafd9171a4d7331e5a45c
parent96a5b24118e085eaa7311187f58fb5772da62fdd (diff)
downloadrefined-github-acff3d52895ffb9d40eb2f359169ef2c03ef9a2c.tar.gz
refined-github-acff3d52895ffb9d40eb2f359169ef2c03ef9a2c.tar.zst
refined-github-acff3d52895ffb9d40eb2f359169ef2c03ef9a2c.zip
Drop discussion support from `quick-comment-edit` (#6325)
-rw-r--r--source/features/quick-comment-edit.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/features/quick-comment-edit.tsx b/source/features/quick-comment-edit.tsx
index afc405f5..ebb8a451 100644
--- a/source/features/quick-comment-edit.tsx
+++ b/source/features/quick-comment-edit.tsx
@@ -19,7 +19,7 @@ function addQuickEditButton(commentForm: Element): void {
<button
type="button"
role="menuitem"
- className={'timeline-comment-action btn-link js-comment-edit-button rgh-quick-comment-edit-button' + (pageDetect.isDiscussion() ? ' js-discussions-comment-edit-button' : '')}
+ className="timeline-comment-action btn-link js-comment-edit-button rgh-quick-comment-edit-button"
aria-label="Edit comment"
>
<PencilIcon/>
@@ -53,7 +53,6 @@ function init(signal: AbortSignal): void {
void features.add(import.meta.url, {
include: [
pageDetect.hasComments,
- pageDetect.isDiscussion,
],
exclude: [
pageDetect.isArchivedRepo,