[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;
margin-top: 14px;
background-image: url(../img/themes/themes.png);
display: block;
}
.item-theme.active:before {
content: '';

View file

@ -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": {

View file

@ -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: <AddOtherController/>
});
}
if(!showPanels && !countPages) {
tabs.push({
caption: _t.textSlide,
id: 'add-slide',
icon: 'icon-add-slide',
component: <AddSlideController />
});
}
if (showPanels && showPanels === 'link') {
tabs.push({
caption: _t.textAddLink,