diff --git a/apps/common/mobile/resources/less/comments.less b/apps/common/mobile/resources/less/comments.less
index 26b52eeff..4067b7a57 100644
--- a/apps/common/mobile/resources/less/comments.less
+++ b/apps/common/mobile/resources/less/comments.less
@@ -212,6 +212,8 @@
.dialog.modal-in {
z-index: 14000;
+ max-height: 100%;
+ overflow: auto;
}
.dialog-backdrop.backdrop-in {
diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json
index 464648cc9..441904234 100644
--- a/apps/documenteditor/mobile/locale/en.json
+++ b/apps/documenteditor/mobile/locale/en.json
@@ -1,5 +1,5 @@
{
- "Main" : {
+ "Main": {
"SDK": {
"Series": "Series",
"Diagram Title": "Chart Title",
@@ -47,12 +47,10 @@
"textPaidFeature": "Paid feature",
"textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader. Please contact our Sales Department to get a quote.",
"textClose": "Close",
-
"errorProcessSaveResult": "Saving is failed.",
"criticalErrorTitle": "Error",
"warnProcessRightsChange": "You have been denied the right to edit the file.",
"errorAccessDeny": "You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.",
-
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
"titleUpdateVersion": "Version changed",
"textHasMacros": "The file contains automatic macros.
Do you want to run macros?",
@@ -468,7 +466,7 @@
"textCancel": "Cancel",
"textPictureFromLibrary": "Picture from Library",
"textPictureFromURL": "Picture from URL",
- "textLinkSettings": "LinkSettings",
+ "textLinkSettings": "Link Settings",
"textBack": "Back",
"textEmptyImgUrl": "You need to specify image URL.",
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
diff --git a/apps/documenteditor/mobile/src/controller/Error.jsx b/apps/documenteditor/mobile/src/controller/Error.jsx
index 21b8d35e4..647fde4a9 100644
--- a/apps/documenteditor/mobile/src/controller/Error.jsx
+++ b/apps/documenteditor/mobile/src/controller/Error.jsx
@@ -204,8 +204,8 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
if (id === Asc.c_oAscError.ID.Warning && btn === 'ok' && (storeAppOptions.canDownload || storeAppOptions.canDownloadOrigin)) {
api.asc_DownloadOrigin();
} else if(id === Asc.c_oAscError.ID.SplitCellMaxRows ||
- Asc.c_oAscError.ID.SplitCellMaxCols ||
- Asc.c_oAscError.ID.SplitCellRowsDivider && btn === 'ok' && (storeAppOptions.canDownload || storeAppOptions.canDownloadOrigin)) {
+ id === Asc.c_oAscError.ID.SplitCellMaxCols ||
+ id === Asc.c_oAscError.ID.SplitCellRowsDivider) {
Common.Notifications.trigger('showSplitModal',true);
}
storeAppOptions.changeEditingRights(false);
diff --git a/apps/documenteditor/mobile/src/view/add/Add.jsx b/apps/documenteditor/mobile/src/view/add/Add.jsx
index 7e490ea58..c09a2690a 100644
--- a/apps/documenteditor/mobile/src/view/add/Add.jsx
+++ b/apps/documenteditor/mobile/src/view/add/Add.jsx
@@ -76,30 +76,36 @@ const AddLayoutContent = ({ tabs }) => {
)
};
-const AddTabs = props => {
+const AddTabs = inject("storeFocusObjects")(observer(({storeFocusObjects, showPanels, style, inPopover}) => {
const { t } = useTranslation();
const _t = t('Add', {returnObjects: true});
- const showPanels = props.showPanels;
const tabs = [];
- if (!showPanels) {
+ const options = storeFocusObjects.settings;
+ if (!showPanels && options.indexOf('text') > -1) {
tabs.push({
caption: _t.textTable,
id: 'add-table',
icon: 'icon-add-table',
component:
});
+ }
+ if(!showPanels) {
tabs.push({
caption: _t.textShape,
id: 'add-shape',
icon: 'icon-add-shape',
component:
});
+ }
+ if(!showPanels) {
tabs.push({
caption: _t.textImage,
id: 'add-image',
icon: 'icon-add-image',
component:
});
+ }
+ if(!showPanels) {
tabs.push({
caption: _t.textOther,
id: 'add-other',
@@ -115,14 +121,14 @@ const AddTabs = props => {
});
}
return (
-
+
-
+
)
-};
+}));
class AddView extends Component {
constructor(props) {
diff --git a/apps/documenteditor/mobile/src/view/add/AddOther.jsx b/apps/documenteditor/mobile/src/view/add/AddOther.jsx
index f32b48ae0..687bb0c07 100644
--- a/apps/documenteditor/mobile/src/view/add/AddOther.jsx
+++ b/apps/documenteditor/mobile/src/view/add/AddOther.jsx
@@ -153,46 +153,55 @@ const PageFootnote = props => {
const AddOther = props => {
const { t } = useTranslation();
const _t = t('Add', {returnObjects: true});
+
+ const storeFocusObjects = props.storeFocusObjects;
+ let isShape = storeFocusObjects.settings.indexOf('shape') > -1,
+ isText = storeFocusObjects.settings.indexOf('text') > -1,
+ isChart = storeFocusObjects.settings.indexOf('chart') > -1;
+
return (
- {
+ {isText && {
props.closeModal();
Common.Notifications.trigger('addcomment');
}}>
-
- }
+ {isText &&
-
+ }
-
-
-
-
-
-
+ {(isShape || isChart) ? null :
+
+
+
+ }
+ {(isShape || isChart) ? null :
+
+
+ }
)
};
-const AddOtherContainer = inject("storeComments")(observer(AddOther));
+const AddOtherContainer = inject("storeComments","storeFocusObjects")(observer(AddOther));
export {AddOtherContainer as AddOther,
PageNumber as PageAddNumber,
diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json
index 7bcd5c37c..c7de2720b 100644
--- a/apps/presentationeditor/mobile/locale/en.json
+++ b/apps/presentationeditor/mobile/locale/en.json
@@ -1,6 +1,6 @@
{
- "Controller" : {
- "Main" : {
+ "Controller": {
+ "Main": {
"SDK": {
"Series": "Series",
"Diagram Title": "Chart Title",
@@ -48,12 +48,10 @@
"textPaidFeature": "Paid feature",
"textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader. Please contact our Sales Department to get a quote.",
"textClose": "Close",
-
"errorProcessSaveResult": "Saving is failed.",
"criticalErrorTitle": "Error",
"warnProcessRightsChange": "You have been denied the right to edit the file.",
"errorAccessDeny": "You are trying to perform an action you do not have rights for.
Please contact your Document Server administrator.",
-
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
"titleUpdateVersion": "Version changed",
"textHasMacros": "The file contains automatic macros.
Do you want to run macros?",
@@ -219,7 +217,7 @@
"textOther": "Other",
"textPictureFromLibrary": "Picture from Library",
"textPictureFromURL": "Picture from URL",
- "textLinkSettings": "LinkSettings",
+ "textLinkSettings": "Link Settings",
"textBack": "Back",
"textEmptyImgUrl": "You need to specify image URL.",
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",