[DE] Fix undo-redo lock
This commit is contained in:
parent
f405de5f39
commit
175a09345d
|
@ -188,7 +188,6 @@ define([
|
||||||
this.popoverChanges && this.popoverChanges.each(function (model) {
|
this.popoverChanges && this.popoverChanges.each(function (model) {
|
||||||
model.set('hint', !me.appConfig.canReview);
|
model.set('hint', !me.appConfig.canReview);
|
||||||
});
|
});
|
||||||
// Common.Utils.lockControls(Common.enumLock.viewMode, this.viewmode, {array: [this.view.btnCompare]});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiShowChange: function (sdkchange) {
|
onApiShowChange: function (sdkchange) {
|
||||||
|
|
|
@ -64,7 +64,7 @@ define([
|
||||||
hasCoeditingUsers: 'has-coediting-users',
|
hasCoeditingUsers: 'has-coediting-users',
|
||||||
previewReviewMode: 'preview-review-mode', // display mode on Collaboration tab
|
previewReviewMode: 'preview-review-mode', // display mode on Collaboration tab
|
||||||
viewFormMode: 'view-form-mode', // view form mode on Forms tab
|
viewFormMode: 'view-form-mode', // view form mode on Forms tab
|
||||||
viewMode: 'view-mode', // view mode on disconnect, version history etc
|
viewMode: 'view-mode', // view mode on disconnect, version history etc (used for locking buttons not in toolbar)
|
||||||
hideComments: 'hide-comments', // no live comments and left panel is closed
|
hideComments: 'hide-comments', // no live comments and left panel is closed
|
||||||
cantShare: 'cant-share'
|
cantShare: 'cant-share'
|
||||||
};
|
};
|
||||||
|
|
|
@ -213,7 +213,7 @@ define([
|
||||||
id: 'id-toolbar-btn-undo',
|
id: 'id-toolbar-btn-undo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-undo',
|
iconCls: 'toolbar__icon btn-undo',
|
||||||
lock: [_set.undoLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.undoLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled'],
|
signals: ['disabled'],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -225,7 +225,7 @@ define([
|
||||||
id: 'id-toolbar-btn-redo',
|
id: 'id-toolbar-btn-redo',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-redo',
|
iconCls: 'toolbar__icon btn-redo',
|
||||||
lock: [_set.redoLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.redoLock, _set.previewReviewMode, _set.lostConnect, _set.disableOnStart],
|
||||||
signals: ['disabled'],
|
signals: ['disabled'],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
|
Loading…
Reference in a new issue