diff --git a/apps/common/mobile/resources/less/common.less b/apps/common/mobile/resources/less/common.less index ad82957bc..428a99e1b 100644 --- a/apps/common/mobile/resources/less/common.less +++ b/apps/common/mobile/resources/less/common.less @@ -192,6 +192,7 @@ height: 38px; margin-top: 14px; background-image: url(../img/themes/themes.png); + display: block; } .item-theme.active:before { content: ''; diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index b90038922..444a910fc 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -273,7 +273,8 @@ "textSearch": "Search", "textCaseSensitive": "Case Sensitive", "textHighlight": "Highlight Results", - "textNoTextFound": "Text not Found" + "textNoTextFound": "Text not Found", + "textSelectObjectToEdit": "Select object to edit" } }, "Common": { diff --git a/apps/presentationeditor/mobile/src/view/add/Add.jsx b/apps/presentationeditor/mobile/src/view/add/Add.jsx index d9483113f..9608afc93 100644 --- a/apps/presentationeditor/mobile/src/view/add/Add.jsx +++ b/apps/presentationeditor/mobile/src/view/add/Add.jsx @@ -73,9 +73,11 @@ const AddLayoutContent = ({ tabs }) => { const AddTabs = props => { const { t } = useTranslation(); const _t = t('View.Add', {returnObjects: true}); + const api = Common.EditorApi.get(); + const countPages = api.getCountPages(); const showPanels = props.showPanels; const tabs = []; - if (!showPanels) { + if (!showPanels && countPages) { tabs.push({ caption: _t.textSlide, id: 'add-slide', @@ -101,6 +103,14 @@ const AddTabs = props => { component: }); } + if(!showPanels && !countPages) { + tabs.push({ + caption: _t.textSlide, + id: 'add-slide', + icon: 'icon-add-slide', + component: + }); + } if (showPanels && showPanels === 'link') { tabs.push({ caption: _t.textAddLink,