We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0056e16 commit c7ede57Copy full SHA for c7ede57
src/frontend/apps/impress/src/features/docs/doc-editor/components/comments/CommentToolbarButton.tsx
@@ -27,12 +27,7 @@ export const CommentToolbarButton = () => {
27
orphan: false,
28
});
29
30
- if (
31
- !editor.isEditable ||
32
- !Components ||
33
- !currentDoc?.abilities.comment ||
34
- hasActiveUnresolvedThread
35
- ) {
+ if (!editor.isEditable || !Components || !currentDoc?.abilities.comment) {
36
return null;
37
}
38
@@ -43,6 +38,7 @@ export const CommentToolbarButton = () => {
43
onClick={() => {
44
39
editor.comments?.startPendingComment();
45
40
}}
41
+ isDisabled={hasActiveUnresolvedThread}
46
42
>
47
<Box
48
$direction="row"
0 commit comments