[DE PE] "save" button locked in wrong way in coauth mode for desktop
This commit is contained in:
parent
326e5bfa98
commit
f623946299
|
@ -1518,7 +1518,7 @@ define([
|
||||||
var toolbarView = this.getApplication().getController('Toolbar').getView();
|
var toolbarView = this.getApplication().getController('Toolbar').getView();
|
||||||
|
|
||||||
if (toolbarView && !toolbarView._state.previewmode) {
|
if (toolbarView && !toolbarView._state.previewmode) {
|
||||||
var isSyncButton = toolbarView.btnSave.$icon.hasClass('btn-synch'),
|
var isSyncButton = toolbarView.btnCollabChanges.$icon.hasClass('btn-synch'),
|
||||||
forcesave = this.appOptions.forcesave,
|
forcesave = this.appOptions.forcesave,
|
||||||
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
||||||
toolbarView.btnSave.setDisabled(isDisabled);
|
toolbarView.btnSave.setDisabled(isDisabled);
|
||||||
|
|
|
@ -1268,7 +1268,7 @@ define([
|
||||||
|
|
||||||
var toolbarView = this.getApplication().getController('Toolbar').getView('Toolbar');
|
var toolbarView = this.getApplication().getController('Toolbar').getView('Toolbar');
|
||||||
if (toolbarView) {
|
if (toolbarView) {
|
||||||
var isSyncButton = $('.icon', toolbarView.btnSave.cmpEl).hasClass('btn-synch'),
|
var isSyncButton = toolbarView.btnCollabChanges.$icon.hasClass('btn-synch'),
|
||||||
forcesave = this.appOptions.forcesave,
|
forcesave = this.appOptions.forcesave,
|
||||||
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
||||||
toolbarView.btnSave.setDisabled(isDisabled);
|
toolbarView.btnSave.setDisabled(isDisabled);
|
||||||
|
|
Loading…
Reference in a new issue