[PE mobile] Bug 47909, Bug 48110
This commit is contained in:
parent
dd3b5fafe0
commit
0bbd65fadd
|
@ -192,6 +192,7 @@
|
|||
height: 38px;
|
||||
margin-top: 14px;
|
||||
background-image: url(../img/themes/themes.png);
|
||||
display: block;
|
||||
}
|
||||
.item-theme.active:before {
|
||||
content: '';
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue