From bda56a292bcd33d91713cc4251f82ee3804024d5 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 8 Jul 2021 14:15:16 +0300 Subject: [PATCH] [DE mobile] Fix Bug 48388 --- .../mobile/src/view/add/AddOther.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/mobile/src/view/add/AddOther.jsx b/apps/documenteditor/mobile/src/view/add/AddOther.jsx index 90c4aa227..7823f05e9 100644 --- a/apps/documenteditor/mobile/src/view/add/AddOther.jsx +++ b/apps/documenteditor/mobile/src/view/add/AddOther.jsx @@ -164,6 +164,7 @@ const AddOther = props => { let disabledAddLink = false, disabledAddBreak = false, disabledAddFootnote = false, + disabledAddPageNumber = false, inFootnote = props.inFootnote, inControl = props.inControl, paragraphLocked = props.paragraphLocked, @@ -176,6 +177,7 @@ const AddOther = props => { disabledAddBreak = paragraphLocked || inFootnote || inControl || richEditLock || plainEditLock || richDelLock || plainDelLock; disabledAddFootnote = paragraphLocked || controlPlain || richEditLock || plainEditLock; disabledAddLink = paragraphLocked || !canAddLink; + disabledAddPageNumber = controlPlain; return ( @@ -191,11 +193,13 @@ const AddOther = props => { }}> } - - - + {!disabledAddPageNumber && + + + + } {(isShape || isChart) || (isText && disabledAddBreak) ? null :