From 102b6692fd1f8e843d8cc0dd3dddb186541f8ac7 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 18 Nov 2022 15:45:09 +0400 Subject: [PATCH] [DE mobile] Fix Bug 59760 --- apps/common/mobile/lib/view/SharingSettings.jsx | 8 +++++--- .../mobile/src/view/settings/Settings.jsx | 10 +++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/common/mobile/lib/view/SharingSettings.jsx b/apps/common/mobile/lib/view/SharingSettings.jsx index 22f60e4b8..5c11a1a34 100644 --- a/apps/common/mobile/lib/view/SharingSettings.jsx +++ b/apps/common/mobile/lib/view/SharingSettings.jsx @@ -6,17 +6,19 @@ import { Device } from "../../utils/device"; const SharingSettings = props => { const { t } = useTranslation(); + const storeAppOptions = props.storeAppOptions; + const sharingSettingsUrl = storeAppOptions.sharingSettingsUrl; const _t = t('Common.Collaboration', {returnObjects: true}); - const url = 'https://nct.onlyoffice.com/Products/Files/Share.aspx?fileid=142278'; + // const url = 'https://nct.onlyoffice.com/Products/Files/Share.aspx?fileid=142278'; return (
- +
) } -export default SharingSettings; \ No newline at end of file +export default inject("storeAppOptions")(observer(SharingSettings)); \ No newline at end of file diff --git a/apps/documenteditor/mobile/src/view/settings/Settings.jsx b/apps/documenteditor/mobile/src/view/settings/Settings.jsx index 32ed242c6..9c0bf1ba5 100644 --- a/apps/documenteditor/mobile/src/view/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Settings.jsx @@ -84,6 +84,7 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props => const { t } = useTranslation(); const _t = t('Settings', {returnObjects: true}); const appOptions = props.storeAppOptions; + const sharingSettingsUrl = appOptions.sharingSettingsUrl; const storeReview = props.storeReview; const displayMode = storeReview.displayMode; const navbar = @@ -191,9 +192,12 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props => onClick={onoptionclick.bind(this, "/application-settings/")}> - - - + {sharingSettingsUrl && + + + + } {_canDownload &&