diff --git a/apps/documenteditor/mobile/src/controller/Toolbar.jsx b/apps/documenteditor/mobile/src/controller/Toolbar.jsx
index be71a2cdf..93e6a4dda 100644
--- a/apps/documenteditor/mobile/src/controller/Toolbar.jsx
+++ b/apps/documenteditor/mobile/src/controller/Toolbar.jsx
@@ -29,6 +29,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto
const showEditDocument = !appOptions.isEdit && appOptions.canEdit && appOptions.canRequestEditRights;
const docInfo = props.storeDocumentInfo;
+ const docExt = docInfo.dataDoc ? docInfo.dataDoc.fileType : '';
const docTitle = docInfo.dataDoc ? docInfo.dataDoc.title : '';
useEffect(() => {
@@ -154,6 +155,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto
closeOptions={props.closeOptions}
isEdit={appOptions.isEdit}
docTitle={docTitle}
+ docExt={docExt}
isShowBack={isShowBack}
onBack={onBack}
isCanUndo={isCanUndo}
diff --git a/apps/documenteditor/mobile/src/view/Toolbar.jsx b/apps/documenteditor/mobile/src/view/Toolbar.jsx
index 3d6916ec3..c36c0cef1 100644
--- a/apps/documenteditor/mobile/src/view/Toolbar.jsx
+++ b/apps/documenteditor/mobile/src/view/Toolbar.jsx
@@ -7,6 +7,8 @@ import EditorUIController from '../lib/patch';
const ToolbarView = props => {
const { t } = useTranslation();
const isDisconnected = props.isDisconnected;
+ const docExt = props.docExt;
+ const isAvailableExt = docExt && docExt !== 'djvu' && docExt !== 'pdf' && docExt !== 'xps';
const disableEditBtn = props.isObjectLocked || props.stateDisplayMode || props.disabledEditControls || isDisconnected;
const isViewer = props.isViewer;
const isMobileView = props.isMobileView;
@@ -54,12 +56,12 @@ const ToolbarView = props => {
{(props.showEditDocument && !isViewer) &&
}
- {props.isEdit && !isViewer && EditorUIController.getToolbarOptions && EditorUIController.getToolbarOptions({
+ {props.isEdit && isAvailableExt && !isViewer && EditorUIController.getToolbarOptions && EditorUIController.getToolbarOptions({
disabled: disableEditBtn || props.disabledControls,
onEditClick: e => props.openOptions('edit'),
onAddClick: e => props.openOptions('add')
})}
- {isViewer && props.turnOffViewerMode()}>}
+ {isViewer && isAvailableExt && props.turnOffViewerMode()}>}
{Device.phone ? null : }
{props.displayCollaboration && window.matchMedia("(min-width: 360px)").matches ? props.openOptions('coauth')}> : null}
props.openOptions('settings')}>