[DE mobile] Fix Bug 59760

This commit is contained in:
SergeyEzhin 2022-11-18 15:45:09 +04:00
parent 249796d6a1
commit 102b6692fd
2 changed files with 12 additions and 6 deletions

View file

@ -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 (
<Page>
<Navbar title={t('Common.Collaboration.textSharingSettings')} backLink={_t.textBack} />
<div id="sharing-placeholder" className="sharing-placeholder">
<iframe width="100%" height="100%" frameBorder={0} scrolling="0" align="top" src={url}></iframe>
<iframe width="100%" height="100%" frameBorder={0} scrolling="0" align="top" src={sharingSettingsUrl}></iframe>
</div>
</Page>
)
}
export default SharingSettings;
export default inject("storeAppOptions")(observer(SharingSettings));

View file

@ -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 = <Navbar title={_t.textSettings}>
@ -191,9 +192,12 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props =>
onClick={onoptionclick.bind(this, "/application-settings/")}>
<Icon slot="media" icon="icon-app-settings"></Icon>
</ListItem>
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="#" onClick={onoptionclick.bind(this, "/sharing-settings/")}>
<Icon slot="media" icon="icon-sharing-settings"></Icon>
</ListItem>
{sharingSettingsUrl &&
<ListItem title={t('Common.Collaboration.textSharingSettings')} link="#"
onClick={onoptionclick.bind(this, "/sharing-settings/")}>
<Icon slot="media" icon="icon-sharing-settings"></Icon>
</ListItem>
}
{_canDownload &&
<ListItem title={_t.textDownload} link="#" onClick={onoptionclick.bind(this, "/download/")}>
<Icon slot="media" icon="icon-download"></Icon>