Fix Bug 49412

This commit is contained in:
ShimaginAndrey 2021-04-21 16:54:12 +03:00
parent c6b68ab7c6
commit a4d55fac57

View file

@ -402,6 +402,9 @@ const EditShape = props => {
const { t } = useTranslation();
const _t = t('Edit', {returnObjects: true});
const canFill = props.storeFocusObjects.shapeObject.get_ShapeProperties().get_CanFill();
const storeShapeSettings = props.storeShapeSettings;
const shapeObject = props.storeFocusObjects.shapeObject;
const wrapType = storeShapeSettings.getWrapType(shapeObject);
return (
<Fragment>
<List>
@ -427,7 +430,7 @@ const EditShape = props => {
<ListItem title={_t.textReplace} link='/edit-shape-replace/' routeProps={{
onReplace: props.onReplace
}}></ListItem>
<ListItem title={_t.textReorder} link='/edit-shape-reorder/' routeProps={{
<ListItem disabled={wrapType === 'inline' ? true : false } title={_t.textReorder} link='/edit-shape-reorder/' routeProps={{
onReorder: props.onReorder
}}></ListItem>
</List>
@ -438,7 +441,7 @@ const EditShape = props => {
)
};
const EditShapeContainer = inject("storeFocusObjects")(observer(EditShape));
const EditShapeContainer = inject("storeFocusObjects","storeShapeSettings")(observer(EditShape));
const PageShapeStyle = inject("storeFocusObjects", "storeShapeSettings")(observer(PageStyle));
const PageShapeStyleNoFill = inject("storeFocusObjects", "storeShapeSettings")(observer(PageStyleNoFill));
const PageShapeCustomFillColor = inject("storeFocusObjects", "storeShapeSettings", "storePalette")(observer(PageCustomFillColor));