chore: hide conflicts button if note is readonly

This commit is contained in:
Aman Harwara
2023-09-21 20:24:29 +05:30
parent e36c36f401
commit 6530aa4c79

View File

@@ -863,7 +863,7 @@ class NoteView extends AbstractComponent<NoteViewProps, State> {
? 'component'
: 'plain'
const shouldShowConflictsButton = this.state.conflictedNotes.length > 0
const shouldShowConflictsButton = this.state.conflictedNotes.length > 0 && !this.state.readonly
return (
<div aria-label="Note" className="section editor sn-component h-full md:max-h-full" ref={this.noteViewElementRef}>