[DE mobile] Fix Bug 48388
This commit is contained in:
parent
2034377187
commit
bda56a292b
|
@ -164,6 +164,7 @@ const AddOther = props => {
|
||||||
let disabledAddLink = false,
|
let disabledAddLink = false,
|
||||||
disabledAddBreak = false,
|
disabledAddBreak = false,
|
||||||
disabledAddFootnote = false,
|
disabledAddFootnote = false,
|
||||||
|
disabledAddPageNumber = false,
|
||||||
inFootnote = props.inFootnote,
|
inFootnote = props.inFootnote,
|
||||||
inControl = props.inControl,
|
inControl = props.inControl,
|
||||||
paragraphLocked = props.paragraphLocked,
|
paragraphLocked = props.paragraphLocked,
|
||||||
|
@ -176,6 +177,7 @@ const AddOther = props => {
|
||||||
disabledAddBreak = paragraphLocked || inFootnote || inControl || richEditLock || plainEditLock || richDelLock || plainDelLock;
|
disabledAddBreak = paragraphLocked || inFootnote || inControl || richEditLock || plainEditLock || richDelLock || plainDelLock;
|
||||||
disabledAddFootnote = paragraphLocked || controlPlain || richEditLock || plainEditLock;
|
disabledAddFootnote = paragraphLocked || controlPlain || richEditLock || plainEditLock;
|
||||||
disabledAddLink = paragraphLocked || !canAddLink;
|
disabledAddLink = paragraphLocked || !canAddLink;
|
||||||
|
disabledAddPageNumber = controlPlain;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<List>
|
<List>
|
||||||
|
@ -191,11 +193,13 @@ const AddOther = props => {
|
||||||
}}>
|
}}>
|
||||||
<Icon slot="media" icon="icon-link"></Icon>
|
<Icon slot="media" icon="icon-link"></Icon>
|
||||||
</ListItem>}
|
</ListItem>}
|
||||||
|
{!disabledAddPageNumber &&
|
||||||
<ListItem title={_t.textPageNumber} link={'/add-page-number/'} routeProps={{
|
<ListItem title={_t.textPageNumber} link={'/add-page-number/'} routeProps={{
|
||||||
onInsertPageNumber: props.onInsertPageNumber
|
onInsertPageNumber: props.onInsertPageNumber
|
||||||
}}>
|
}}>
|
||||||
<Icon slot="media" icon="icon-pagenumber"></Icon>
|
<Icon slot="media" icon="icon-pagenumber"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
}
|
||||||
{(isShape || isChart) || (isText && disabledAddBreak) ? null :
|
{(isShape || isChart) || (isText && disabledAddBreak) ? null :
|
||||||
<ListItem key='break' title={_t.textBreak} link={'/add-break/'} routeProps={{
|
<ListItem key='break' title={_t.textBreak} link={'/add-break/'} routeProps={{
|
||||||
onPageBreak: props.onPageBreak,
|
onPageBreak: props.onPageBreak,
|
||||||
|
|
Loading…
Reference in a new issue