Skip to content

Commit c7ede57

Browse files
committed
disabled-instead-remove-comment-button
1 parent 0056e16 commit c7ede57

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/comments/CommentToolbarButton.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ export const CommentToolbarButton = () => {
2727
orphan: false,
2828
});
2929

30-
if (
31-
!editor.isEditable ||
32-
!Components ||
33-
!currentDoc?.abilities.comment ||
34-
hasActiveUnresolvedThread
35-
) {
30+
if (!editor.isEditable || !Components || !currentDoc?.abilities.comment) {
3631
return null;
3732
}
3833

@@ -43,6 +38,7 @@ export const CommentToolbarButton = () => {
4338
onClick={() => {
4439
editor.comments?.startPendingComment();
4540
}}
41+
isDisabled={hasActiveUnresolvedThread}
4642
>
4743
<Box
4844
$direction="row"

0 commit comments

Comments
 (0)