mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:47:17 +08:00
[PE] Lock line space button when no paragraph object
This commit is contained in:
@ -112,8 +112,7 @@ define([
|
||||
clrhighlight: undefined,
|
||||
can_copycut: undefined,
|
||||
needCallApiBullets: undefined,
|
||||
isLockedSlideHeaderAppyToAll: false,
|
||||
in_para: undefined
|
||||
isLockedSlideHeaderAppyToAll: false
|
||||
};
|
||||
this._isAddingShape = false;
|
||||
this.slideSizeArr = [
|
||||
@ -868,10 +867,7 @@ define([
|
||||
this._state.in_chart = in_chart;
|
||||
}
|
||||
|
||||
if (in_para !== this._state.in_para) {
|
||||
this.toolbar.mnuLineSpaceOptions && this.toolbar.mnuLineSpaceOptions.setVisible(in_para);
|
||||
this._state.in_para = in_para;
|
||||
}
|
||||
this.toolbar.lockToolbar(Common.enumLock.noParagraphObject, !in_para, {array: [me.toolbar.btnLineSpace]});
|
||||
|
||||
if (this._state.prcontrolsdisable !== paragraph_locked) {
|
||||
if (this._state.activated) this._state.prcontrolsdisable = paragraph_locked;
|
||||
|
||||
@ -101,7 +101,8 @@ define([
|
||||
noAnimationDuration: 'no-animation-duration',
|
||||
timingLock: 'timing-lock',
|
||||
copyLock: 'can-copy',
|
||||
fileMenuOpened: 'file-menu-opened'
|
||||
fileMenuOpened: 'file-menu-opened',
|
||||
noParagraphObject: 'no-paragraph-obj',
|
||||
};
|
||||
for (var key in enumLock) {
|
||||
if (enumLock.hasOwnProperty(key)) {
|
||||
@ -686,7 +687,7 @@ define([
|
||||
id: 'id-toolbar-btn-linespace',
|
||||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-linespace',
|
||||
lock: [_set.slideDeleted, _set.paragraphLock, _set.lostConnect, _set.noSlides, _set.noParagraphSelected],
|
||||
lock: [_set.slideDeleted, _set.paragraphLock, _set.lostConnect, _set.noSlides, _set.noParagraphSelected, _set.noParagraphObject],
|
||||
menu: new Common.UI.Menu({
|
||||
style: 'min-width: 60px;',
|
||||
items: [
|
||||
|
||||
Reference in New Issue
Block a user