diff --git a/apps/documenteditor/mobile/src/controller/Toolbar.jsx b/apps/documenteditor/mobile/src/controller/Toolbar.jsx index 609c072fe..b6f32e31f 100644 --- a/apps/documenteditor/mobile/src/controller/Toolbar.jsx +++ b/apps/documenteditor/mobile/src/controller/Toolbar.jsx @@ -174,6 +174,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview')(prop return ( { {props.isShowBack && } - - + {props.isEdit && EditorUIController.getUndoRedo({ + disabledUndo: !props.isCanUndo, + disabledRedo: !props.isCanRedo, + onUndoClick: props.onUndo, + onRedoClick: props.onRedo + })} {!Device.phone && {props.docTitle}} - { - EditorUIController.getToolbarOptions({ + {props.isEdit && EditorUIController.getToolbarOptions({ disabled: disableEditBtn || props.disabledControls, onEditClick: e => props.openOptions('edit'), - onAddClick: e => props.openOptions('add'), - }) - } + onAddClick: e => props.openOptions('add') + })} { Device.phone ? null : } {props.displayCollaboration && props.openOptions('coauth')}>} props.openOptions('settings')}>