[PE mobile] Bug 47909, Bug 48110

This commit is contained in:
SergeyEzhin 2021-04-01 01:23:00 +03:00
parent dd3b5fafe0
commit 0bbd65fadd
3 changed files with 14 additions and 2 deletions

View file

@ -192,6 +192,7 @@
height: 38px; height: 38px;
margin-top: 14px; margin-top: 14px;
background-image: url(../img/themes/themes.png); background-image: url(../img/themes/themes.png);
display: block;
} }
.item-theme.active:before { .item-theme.active:before {
content: ''; content: '';

View file

@ -273,7 +273,8 @@
"textSearch": "Search", "textSearch": "Search",
"textCaseSensitive": "Case Sensitive", "textCaseSensitive": "Case Sensitive",
"textHighlight": "Highlight Results", "textHighlight": "Highlight Results",
"textNoTextFound": "Text not Found" "textNoTextFound": "Text not Found",
"textSelectObjectToEdit": "Select object to edit"
} }
}, },
"Common": { "Common": {

View file

@ -73,9 +73,11 @@ const AddLayoutContent = ({ tabs }) => {
const AddTabs = props => { const AddTabs = props => {
const { t } = useTranslation(); const { t } = useTranslation();
const _t = t('View.Add', {returnObjects: true}); const _t = t('View.Add', {returnObjects: true});
const api = Common.EditorApi.get();
const countPages = api.getCountPages();
const showPanels = props.showPanels; const showPanels = props.showPanels;
const tabs = []; const tabs = [];
if (!showPanels) { if (!showPanels && countPages) {
tabs.push({ tabs.push({
caption: _t.textSlide, caption: _t.textSlide,
id: 'add-slide', id: 'add-slide',
@ -101,6 +103,14 @@ const AddTabs = props => {
component: <AddOtherController/> component: <AddOtherController/>
}); });
} }
if(!showPanels && !countPages) {
tabs.push({
caption: _t.textSlide,
id: 'add-slide',
icon: 'icon-add-slide',
component: <AddSlideController />
});
}
if (showPanels && showPanels === 'link') { if (showPanels && showPanels === 'link') {
tabs.push({ tabs.push({
caption: _t.textAddLink, caption: _t.textAddLink,