From 830b4944ce5f271621eda2a68810fa6d653391d5 Mon Sep 17 00:00:00 2001
From: SergeyEzhin
Date: Wed, 11 May 2022 14:46:55 +0400
Subject: [PATCH 1/4] Fix Bug 53424
---
apps/common/mobile/lib/view/collaboration/Collaboration.jsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/apps/common/mobile/lib/view/collaboration/Collaboration.jsx b/apps/common/mobile/lib/view/collaboration/Collaboration.jsx
index b2cc1b013..c7e183169 100644
--- a/apps/common/mobile/lib/view/collaboration/Collaboration.jsx
+++ b/apps/common/mobile/lib/view/collaboration/Collaboration.jsx
@@ -25,7 +25,6 @@ const PageUsers = inject("users")(observer(props => {
}
- {_t.textEditUser}
{storeUsers.editUsers.map((user, i) => (
1 ? ` (${user.count})` : '')} key={i}>
From 284e6970905833d1b2ded817c519634562adf782 Mon Sep 17 00:00:00 2001
From: SergeyEzhin
Date: Wed, 11 May 2022 18:55:02 +0400
Subject: [PATCH 2/4] [common] For Bug 56305
---
apps/common/mobile/lib/view/About.jsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/common/mobile/lib/view/About.jsx b/apps/common/mobile/lib/view/About.jsx
index f553ab95c..8d61d482b 100644
--- a/apps/common/mobile/lib/view/About.jsx
+++ b/apps/common/mobile/lib/view/About.jsx
@@ -52,7 +52,7 @@ const PageAbout = props => {
{addressCustomer && addressCustomer.length ? (
- {addressCustomer}
+ {addressCustomer}
) : null}
{mailCustomer && mailCustomer.length ? (
@@ -63,7 +63,7 @@ const PageAbout = props => {
) : null}
{urlCustomer && urlCustomer.length ? (
-
{urlCustomer}
@@ -82,7 +82,7 @@ const PageAbout = props => {
{publisherName}
- {publisherPrintUrl}
+ {publisherPrintUrl}
@@ -110,7 +110,7 @@ const PageAbout = props => {
{__PUBLISHER_PHONE__}
- {publisherPrintUrl}
+ {publisherPrintUrl}
From d460ee980c4fb1a8abca5a123aa4ac35665ee30a Mon Sep 17 00:00:00 2001
From: SergeyEzhin
Date: Wed, 11 May 2022 19:23:19 +0400
Subject: [PATCH 3/4] [PE SSE mobile] Fix Bug 57113
---
apps/presentationeditor/mobile/locale/en.json | 2 +-
.../mobile/src/controller/Main.jsx | 20 ++++++++++++++++++-
apps/spreadsheeteditor/mobile/locale/en.json | 2 ++
.../mobile/src/controller/Main.jsx | 19 ++++++++++++++++++
4 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json
index 90941fd52..9e01a496c 100644
--- a/apps/presentationeditor/mobile/locale/en.json
+++ b/apps/presentationeditor/mobile/locale/en.json
@@ -115,12 +115,12 @@
"textReplaceSuccess": "The search has been done. Occurrences replaced: {0}",
"textYes": "Yes",
"titleLicenseExp": "License expired",
+ "warnLicenseExp": "Your license has expired. Please, update your license and refresh the page.",
"titleServerVersion": "Editor updated",
"titleUpdateVersion": "Version changed",
"txtIncorrectPwd": "Password is incorrect",
"txtProtected": "Once you enter the password and open the file, the current password to the file will be reset",
"warnLicenseExceeded": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only. Contact your administrator to learn more.",
- "warnLicenseExp": "Your license has expired. Please, update it and refresh the page.",
"warnLicenseLimitedNoAccess": "License expired. You have no access to document editing functionality. Please, contact your administrator.",
"warnLicenseLimitedRenewed": "License needs to be renewed. You have limited access to document editing functionality.
Please contact your administrator to get full access",
"warnLicenseUsersExceeded": "You've reached the user limit for %1 editors. Contact your administrator to learn more.",
diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx
index 64508434b..3e2f94e17 100644
--- a/apps/presentationeditor/mobile/src/controller/Main.jsx
+++ b/apps/presentationeditor/mobile/src/controller/Main.jsx
@@ -152,8 +152,26 @@ class MainController extends Component {
const onEditorPermissions = params => {
const licType = params.asc_getLicenseType();
+ const { t } = this.props;
+ // const _t = t('Controller.Main', { returnObjects:true });
+
+ if (Asc.c_oLicenseResult.Expired === licType ||
+ Asc.c_oLicenseResult.Error === licType ||
+ Asc.c_oLicenseResult.ExpiredTrial === licType) {
- this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
+ f7.dialog.create({
+ title: t('Controller.Main.titleLicenseExp'),
+ text: t('Controller.Main.warnLicenseExp')
+ }).open();
+
+ return;
+ }
+
+ if (Asc.c_oLicenseResult.ExpiredLimited === licType) {
+ this._state.licenseType = licType;
+ }
+
+ this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
const storeAppOptions = this.props.storeAppOptions;
storeAppOptions.setPermissionOptions(this.document, licType, params, this.permissions, EditorUIController.isSupportEditFeature());
diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json
index 61b4d24ed..5066a590a 100644
--- a/apps/spreadsheeteditor/mobile/locale/en.json
+++ b/apps/spreadsheeteditor/mobile/locale/en.json
@@ -74,6 +74,8 @@
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
"leavePageText": "You have unsaved changes in this document. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.",
"notcriticalErrorTitle": "Warning",
+ "titleLicenseExp": "License expired",
+ "warnLicenseExp": "Your license has expired. Please, update your license and refresh the page.",
"SDK": {
"txtAccent": "Accent",
"txtAll": "(All)",
diff --git a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx
index cfd1f6385..314510a62 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx
@@ -197,6 +197,25 @@ class MainController extends Component {
const onEditorPermissions = params => {
const licType = params.asc_getLicenseType();
+ const { t } = this.props;
+ // const _t = t('Controller.Main', { returnObjects:true });
+
+ if (Asc.c_oLicenseResult.Expired === licType ||
+ Asc.c_oLicenseResult.Error === licType ||
+ Asc.c_oLicenseResult.ExpiredTrial === licType) {
+
+ f7.dialog.create({
+ title: t('Controller.Main.titleLicenseExp'),
+ text: t('Controller.Main.warnLicenseExp')
+ }).open();
+
+ return;
+ }
+
+ if (Asc.c_oLicenseResult.ExpiredLimited === licType) {
+ this._state.licenseType = licType;
+ }
+
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
const appOptions = this.props.storeAppOptions;
From 49ded5c54264460a4250138af5ab59a0fbb55181 Mon Sep 17 00:00:00 2001
From: SergeyEzhin
Date: Thu, 12 May 2022 21:23:02 +0400
Subject: [PATCH 4/4] [DE PE mobile] For Bug 57125
---
apps/common/mobile/lib/view/collaboration/Comments.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/common/mobile/lib/view/collaboration/Comments.jsx b/apps/common/mobile/lib/view/collaboration/Comments.jsx
index d8927fca7..3168df6f2 100644
--- a/apps/common/mobile/lib/view/collaboration/Comments.jsx
+++ b/apps/common/mobile/lib/view/collaboration/Comments.jsx
@@ -616,7 +616,7 @@ const pickLink = (message) => {
arrayComment = arrayComment.sort(function(item1,item2){ return item1.start - item2.start; });
- let str_res = (arrayComment.length>0) ? : ;
+ let str_res = (arrayComment.length>0) ? : ;
for (var i=1; i{str_res}{Common.Utils.String.htmlEncode(message.substring(arrayComment[i-1].end, arrayComment[i].start))}{arrayComment[i].str};