chore: hide conflicts button if note is readonly
This commit is contained in:
@@ -863,7 +863,7 @@ class NoteView extends AbstractComponent<NoteViewProps, State> {
|
|||||||
? 'component'
|
? 'component'
|
||||||
: 'plain'
|
: 'plain'
|
||||||
|
|
||||||
const shouldShowConflictsButton = this.state.conflictedNotes.length > 0
|
const shouldShowConflictsButton = this.state.conflictedNotes.length > 0 && !this.state.readonly
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div aria-label="Note" className="section editor sn-component h-full md:max-h-full" ref={this.noteViewElementRef}>
|
<div aria-label="Note" className="section editor sn-component h-full md:max-h-full" ref={this.noteViewElementRef}>
|
||||||
|
|||||||
Reference in New Issue
Block a user