fix: Can't edit title in collaborative mode
This commit is contained in:
parent
d7e9ad4f13
commit
162da9a3ad
|
@ -92,11 +92,19 @@ class DocumentScene extends React.Component<Props> {
|
|||
|
||||
if (this.props.readOnly || auth.team?.collaborativeEditing) {
|
||||
this.lastRevision = document.revision;
|
||||
}
|
||||
|
||||
if (this.props.readOnly) {
|
||||
if (document.title !== this.title) {
|
||||
this.title = document.title;
|
||||
}
|
||||
} else if (prevProps.document.revision !== this.lastRevision) {
|
||||
}
|
||||
|
||||
if (
|
||||
!this.props.readOnly &&
|
||||
!auth.team?.collaborativeEditing &&
|
||||
prevProps.document.revision !== this.lastRevision
|
||||
) {
|
||||
if (auth.user && document.updatedBy.id !== auth.user.id) {
|
||||
this.props.toasts.showToast(
|
||||
t(`Document updated by {{userName}}`, {
|
||||
|
|
Reference in New Issue