File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/frontend/apps/impress/src/features/docs/doc-editor/components Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import {
2929import { useEditorStore } from '../stores' ;
3030import { cssEditor } from '../styles' ;
3131import { DocsBlockNoteEditor } from '../types' ;
32- import { HARDCODED_USERS } from '../userdata' ;
3332import { randomColor } from '../utils' ;
3433
3534import { BlockNoteSuggestionMenu } from './BlockNoteSuggestionMenu' ;
Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ export const CommentToolbarButton = () => {
2323 DocsStyleSchema
2424 > ( ) ;
2525
26- if ( ! editor . isEditable || ! Components || ! currentDoc ?. abilities . comment ) {
26+ if (
27+ ! editor . isEditable ||
28+ ! Components ||
29+ ! currentDoc ?. abilities . comment /* ||
30+ editor._tiptapEditor.isActive('comment') // has already a comment*/
31+ ) {
2732 return null ;
2833 }
2934
You can’t perform that action at this time.
0 commit comments