[DE mobile] Fix Bug 58047
This commit is contained in:
parent
ea5a4eb28e
commit
4d55d56aa5
|
@ -159,7 +159,8 @@ const AddOther = props => {
|
||||||
|
|
||||||
let isShape = storeFocusObjects.settings.indexOf('shape') > -1,
|
let isShape = storeFocusObjects.settings.indexOf('shape') > -1,
|
||||||
isText = storeFocusObjects.settings.indexOf('text') > -1,
|
isText = storeFocusObjects.settings.indexOf('text') > -1,
|
||||||
isChart = storeFocusObjects.settings.indexOf('chart') > -1;
|
isChart = storeFocusObjects.settings.indexOf('chart') > -1,
|
||||||
|
isHeader = storeFocusObjects.settings.indexOf('header') > -1;
|
||||||
|
|
||||||
let disabledAddLink = false,
|
let disabledAddLink = false,
|
||||||
disabledAddBreak = false,
|
disabledAddBreak = false,
|
||||||
|
@ -209,9 +210,11 @@ const AddOther = props => {
|
||||||
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
}
|
}
|
||||||
<ListItem title={_t.textTableContents} link="/add-table-contents/">
|
{!isHeader &&
|
||||||
<Icon slot="media" icon="icon-table-contents"></Icon>
|
<ListItem title={_t.textTableContents} link="/add-table-contents/">
|
||||||
</ListItem>
|
<Icon slot="media" icon="icon-table-contents"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
}
|
||||||
{(isShape || isChart) || (isText && disabledAddFootnote) ? null :
|
{(isShape || isChart) || (isText && disabledAddFootnote) ? null :
|
||||||
<ListItem key='footnote' title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
<ListItem key='footnote' title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
||||||
getFootnoteProps: props.getFootnoteProps,
|
getFootnoteProps: props.getFootnoteProps,
|
||||||
|
|
Loading…
Reference in a new issue