Fix Bug 49412
This commit is contained in:
parent
dcca2e189e
commit
54fb6bb142
|
@ -239,6 +239,7 @@ const EditImage = props => {
|
|||
const storeFocusObjects = props.storeFocusObjects;
|
||||
const imageObject = storeFocusObjects.imageObject;
|
||||
const pluginGuid = imageObject.asc_getPluginGuid();
|
||||
const wrapType = props.storeImageSettings.getWrapType(imageObject);
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
|
@ -254,9 +255,9 @@ const EditImage = props => {
|
|||
onReplaceByFile: props.onReplaceByFile,
|
||||
onReplaceByUrl: props.onReplaceByUrl
|
||||
}}></ListItem>
|
||||
<ListItem title={_t.textReorder} link='/edit-image-reorder/' routeProps={{
|
||||
{ wrapType !== 'inline' && <ListItem title={_t.textReorder} link='/edit-image-reorder/' routeProps={{
|
||||
onReorder: props.onReorder
|
||||
}}></ListItem>
|
||||
}}></ListItem> }
|
||||
</List>
|
||||
<List className="buttons-list">
|
||||
<ListButton className='button-fill button-raised' title={_t.textActualSize} onClick={() => {props.onDefaulSize()}}/>
|
||||
|
@ -266,7 +267,7 @@ const EditImage = props => {
|
|||
)
|
||||
};
|
||||
|
||||
const EditImageContainer = inject("storeFocusObjects")(observer(EditImage));
|
||||
const EditImageContainer = inject("storeFocusObjects", "storeImageSettings")(observer(EditImage));
|
||||
const PageWrapContainer = inject("storeFocusObjects", "storeImageSettings")(observer(PageWrap));
|
||||
const PageReplaceContainer = inject("storeFocusObjects")(observer(PageReplace));
|
||||
const PageReorderContainer = inject("storeFocusObjects")(observer(PageReorder));
|
||||
|
|
|
@ -506,9 +506,8 @@ 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);
|
||||
const wrapType = props.storeShapeSettings.getWrapType(shapeObject);
|
||||
|
||||
let disableRemove = !!props.storeFocusObjects.paragraphObject;
|
||||
|
||||
|
@ -537,9 +536,9 @@ const EditShape = props => {
|
|||
<ListItem title={_t.textReplace} link='/edit-shape-replace/' routeProps={{
|
||||
onReplace: props.onReplace
|
||||
}}></ListItem>
|
||||
<ListItem disabled={wrapType === 'inline' ? true : false } title={_t.textReorder} link='/edit-shape-reorder/' routeProps={{
|
||||
{ wrapType !== 'inline' && <ListItem title={_t.textReorder} link='/edit-shape-reorder/' routeProps={{
|
||||
onReorder: props.onReorder
|
||||
}}></ListItem>
|
||||
}}></ListItem> }
|
||||
</List>
|
||||
<List className="buttons-list">
|
||||
<ListButton title={_t.textRemoveShape} onClick={() => {props.onRemoveShape()}} className={`button-red button-fill button-raised${disableRemove ? ' disabled' : ''}`} />
|
||||
|
|
Loading…
Reference in a new issue