[DE mobile] For Bug 54712
This commit is contained in:
parent
36388f5360
commit
5d2d58c2ad
|
@ -516,15 +516,18 @@ const EditShape = props => {
|
||||||
|| shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5'
|
|| shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5'
|
||||||
|| shapeType=='straightConnector1';
|
|| shapeType=='straightConnector1';
|
||||||
|
|
||||||
let controlProps = api && api.asc_IsContentControl() ? api.asc_GetContentControlProperties() : null,
|
const inControl = api.asc_IsContentControl();
|
||||||
fixedSize = false;
|
const controlProps = (api && inControl) ? api.asc_GetContentControlProperties() : null;
|
||||||
|
const lockType = controlProps ? controlProps.get_Lock() : Asc.c_oAscSdtLockType.Unlocked;
|
||||||
|
|
||||||
|
let fixedSize = false;
|
||||||
|
|
||||||
if (controlProps) {
|
if (controlProps) {
|
||||||
let spectype = controlProps.get_SpecificType();
|
let spectype = controlProps.get_SpecificType();
|
||||||
fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed();
|
fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed();
|
||||||
}
|
}
|
||||||
|
|
||||||
let disableRemove = !!props.storeFocusObjects.paragraphObject;
|
let disableRemove = !!props.storeFocusObjects.paragraphObject || (lockType == Asc.c_oAscSdtLockType.SdtContentLocked || lockType == Asc.c_oAscSdtLockType.SdtLocked);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|
Loading…
Reference in a new issue