mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 07:41:23 +08:00
[PDF] Fix collaboration notification on start
This commit is contained in:
@ -2208,7 +2208,7 @@ define([
|
||||
// },
|
||||
|
||||
onCollaborativeChanges: function() {
|
||||
if (this._state.hasCollaborativeChanges) return;
|
||||
if (this._state.hasCollaborativeChanges || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return;
|
||||
this._state.hasCollaborativeChanges = true;
|
||||
if (this.appOptions.isEdit)
|
||||
this.getApplication().getController('Statusbar').setStatusCaption(this.txtNeedSynchronize, true);
|
||||
|
||||
@ -1686,7 +1686,7 @@ define([
|
||||
|
||||
/** coauthoring begin **/
|
||||
onCollaborativeChanges: function () {
|
||||
if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit)) return;
|
||||
if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit) || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return;
|
||||
|
||||
if (this._state.hasCollaborativeChanges) return;
|
||||
if (!this.btnCollabChanges.rendered || this._state.previewmode) {
|
||||
|
||||
Reference in New Issue
Block a user